Skip to content

Commit 8895c4c

Browse files
committed
ignore biome rule
1 parent 9c1d9a0 commit 8895c4c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/slugify.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ var FORBIDDEN_CHARS_REGEX = /[\p{S}\p{P}]/gu;
1111
// Control chars, format chars (e.g. ZWJ), variation selectors, and the
1212
// combining enclosing keycap. Some of these may be left behind after emoji
1313
// 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
1416
var INVISIBLE_CHARS_REGEX = /[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu;
1517

1618
var UNICODE_REPLACEMENT_CHAR_REGEX = //g; // U+FFFD, the Unicode replacement character

0 commit comments

Comments
 (0)