chore: use startsWith for prefix matching
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
45e9376330
commit
fc7862b837
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue