schema: apply @tinnus-napbus review (#1559)
Co-authored-by: tinnus-napbus <77721746+tinnus-napbus@users.noreply.github.com>
commitd413305ba0a331834f4e4e97dba982ab3622e85b
authormatildepark <matilde.park@urbit.org>
dateMon 13 Jun 2022, 23:52 (4 years ago)
parent3ab86cc
components/schema/Heading.markdoc.js+1−1
@@ -11,7 +11,7 @@ function generateID(children, attributes) {
1111 return bottomChildren
1212 .filter((child) => typeof child === "string")
1313 .join(" ")
14− .replace(/[=?!><:;,+#^|$&~"*@\._%/]/g, "")
14+ .replace(/[=?!><:;,+#^|$&~"*@\.%/]/g, "")
1515 .replace(/\s+/g, "-")
1616 .toLowerCase();
1717}