Use replace instead of replaceAll

pull/315/head
Maksim Novikov 2021-07-04 17:29:20 +07:00
parent 13116346dc
commit ae26bd5ece
No known key found for this signature in database
GPG Key ID: 2F1C320B72DA6C55
1 changed files with 1 additions and 1 deletions

@ -10,7 +10,7 @@ function kw(keyword) {
if (regExps.length == 1) {
return alias(regExps[0], keyword);
} else {
return alias(seq(...regExps), keyword.replaceAll(" ", "_"));
return alias(seq(...regExps), keyword.replace(/ /g, "_"));
}
}