Update admin.html
Additional European and Cyrillic characters
This commit is contained in:
1 parent
d0dc9f3212
commit
abaa56e8f4
1 file changed
+2
-2
@@ -416,7 +416,7 @@
|
||||
let cleanedText = textInput.replace(/ \- | \– /g, ' '); // Replace hyphens
|
||||
cleanedText = cleanedText.replace(/%/g, " percent");
|
||||
//cleanedText = cleanedText.replace(/([!?.])\1+/g, '$1');
|
||||
cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"]/g, '');
|
||||
cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF]/g, '');
|
||||
cleanedText = cleanedText.replace(/\n+/g, ' ');
|
||||
cleanedText = cleanedText.replace(/\.\s'/g, ".'"); // Remove space between period and single quote
|
||||
//cleanedText = cleanedText.replace(/'/g, ""); // Remove all single quotes
|
||||
@@ -1431,4 +1431,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in new issue
Block a user