mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Tiny string utils fix
This commit is contained in:
parent
8ad9ee91b1
commit
9db2d16dba
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -65,7 +65,7 @@ class StringUtils {
|
||||||
assert(val);
|
assert(val);
|
||||||
assert(char);
|
assert(char);
|
||||||
|
|
||||||
toremove = this.NormalizeSpaces(val);
|
var toremove = this.NormalizeSpaces(val);
|
||||||
|
|
||||||
var regex = new RegExp(char, "g");
|
var regex = new RegExp(char, "g");
|
||||||
toremove.replace(regex, " ");
|
toremove.replace(regex, " ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue