Skip to content

Commit

Permalink
chore: update eslint comment about regex usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Jan 13, 2023
1 parent 0f4f42f commit 4f2ce3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.eleventy.js
Expand Up @@ -71,7 +71,7 @@ module.exports = function(eleventyConfig) {
*/
function slugify(text) {
return slug(text.replace(/[<>()[\]{}]/gu, ""))
/* eslint-disable no-control-regex, require-unicode-regexp -- used regex from https://github.com/eslint/archive-website/blob/master/_11ty/plugins/markdown-plugins.js#L37*/
/* eslint-disable no-control-regex, require-unicode-regexp -- used regex to replace */

// Remove control characters
.replace(/[\u0000-\u001F]/g, "")
Expand Down

0 comments on commit 4f2ce3e

Please sign in to comment.