mirror of
https://github.com/Emupedia/emupedia.github.io.git
synced 2026-12-06 03:20:27 +08:00
More work
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user