chore: use startsWith for prefix matching

This commit is contained in:
kolaente 2023-04-12 09:46:48 +02:00 committed by konrad
parent ae025e30c6
commit 10ac1ff66a
1 changed files with 1 additions and 1 deletions

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)
}