More work

This commit is contained in:
Emupedia
2020-02-09 02:13:01 +02:00
parent de256e8eb9
commit 10a8a7f817

View File

@@ -216,7 +216,7 @@
};
net.remove_profanity = function(str) {
str = str.replace(/ +/g, ' ');
str = str.replace(/ +/g, ' ').trim();
for (var profanity1 in profanity_data.mapping.en) {
// noinspection JSUnfilteredForInLoop
@@ -250,7 +250,7 @@
str = str.replace(replace_regex[r2], ' `' + r2 + '` ');
}
return str.replace(/ +/g, ' ');
return str.replace(/ +/g, ' ').trim();
};
net.normalize = function(str) {