chore: use startsWith for prefix matching

This commit is contained in:
kolaente
2023-06-05 14:09:19 +00:00
committed by konrad
parent ae025e30c6
commit 10ac1ff66a
+1 -1
View File
@@ -109,7 +109,7 @@ const getItemsFromPrefix = (text: string, prefix: string): string[] => {
return
}
if (p.substring(0, 1) === prefix) {
if (p.startsWith(prefix)) {
p = p.substring(1)
}