NON_WORD_REGEXP
import { NON_WORD_REGEXP } from "jsr:@ende/text/unstable-slugify";variable · experimental
const NON_WORD_REGEXP: RegExpA regular expression for stripping non-word characters from slugs.
Example: Usage
import { NON_WORD_REGEXP, slugify } from "@ende/text/unstable-slugify";
import { assertEquals } from "@ende/assert";
assertEquals(slugify("déjà-vu", { strip: NON_WORD_REGEXP }), "déjà-vu");
assertEquals(slugify("Συστημάτων Γραφής", { strip: NON_WORD_REGEXP }), "συστημάτων-γραφής");