mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Remove unnecessary forward slashes in regex
This commit is contained in:
@@ -352,7 +352,7 @@ export function toAsciiPrintable(string, fallback) {
|
||||
string = string.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
||||
}
|
||||
|
||||
return /^[/\040-\176/]*$/.test(string) ? string : fallback;
|
||||
return /^[\040-\176]*$/.test(string) ? string : fallback;
|
||||
}
|
||||
|
||||
export function slugify(string) {
|
||||
|
||||
Reference in New Issue
Block a user