chore: use startsWith for prefix matching
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2023-04-12 09:46:48 +02:00
parent 45e9376330
commit fc7862b837
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
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)
}