Fix a CodeQL complaint

This commit is contained in:
James Yu 2023-01-08 11:54:55 +08:00
parent 32f66ca2b2
commit 3edd15cc28

View File

@ -107,7 +107,7 @@ export class NewCommandFinder {
if (result) {
let command = result[1]
if (result[2]) {
command = command.replace(/\*/, '')
command = command.replace('*', '')
}
commands.push(command)
}