There was an error while loading. Please reload this page.
1 parent 9c1d9a0 commit 8895c4cCopy full SHA for 8895c4c
1 file changed
src/lib/slugify.js
@@ -11,6 +11,8 @@ var FORBIDDEN_CHARS_REGEX = /[\p{S}\p{P}]/gu;
11
// Control chars, format chars (e.g. ZWJ), variation selectors, and the
12
// combining enclosing keycap. Some of these may be left behind after emoji
13
// symbols are removed, so we explicitly remove them here.
14
+// Biome doesn't like seeing variation selectors in regexes, but it's intentional here
15
+// biome-ignore lint/suspicious/noMisleadingCharacterClass: Intentionally matching standalone modifier and control characters
16
var INVISIBLE_CHARS_REGEX = /[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu;
17
18
var UNICODE_REPLACEMENT_CHAR_REGEX = /�/g; // U+FFFD, the Unicode replacement character
0 commit comments