FIX: Remove unnecessary forward slashes in regex

This commit is contained in:
tshenry
2020-05-11 17:55:44 -07:00
parent dfe55d2344
commit 6f228b0312

View File

@@ -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) {