chore: use startsWith for prefix matching

This commit is contained in:
kolaente 2023-04-12 09:46:48 +02:00
parent fd1e838e40
commit d3933e5591
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

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