moved ignore down

This commit is contained in:
Miodec 2022-02-12 14:11:26 +01:00
parent ba3427f94b
commit d07126f10e

View file

@ -733,9 +733,9 @@ export function cleanTypographySymbols(textToClean: string): string {
"": " ",
" ": " ",
};
// @ts-ignore
return textToClean.replace(
/[“”’‘—,…«»–\u2007\u202F\u00A0]/g,
// @ts-ignore
(char) => specials[char] || ""
);
}