chore: use startsWith for prefix matching
This commit is contained in:
parent
ae025e30c6
commit
10ac1ff66a
@ -109,7 +109,7 @@ const getItemsFromPrefix = (text: string, prefix: string): string[] => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.substring(0, 1) === prefix) {
|
if (p.startsWith(prefix)) {
|
||||||
p = p.substring(1)
|
p = p.substring(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user