From 9e4d07926ae062e31ad92c51a152c5d6ef36e52f Mon Sep 17 00:00:00 2001 From: hoijui Date: Mon, 21 Oct 2019 08:26:42 +0200 Subject: [PATCH] slight doc comment touch-up/simplification [minor] Signed-off-by: hoijui --- public/js/extra.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/extra.js b/public/js/extra.js index 03f04664..b45c60ff 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -168,11 +168,11 @@ export function renderTags (view) { } function slugifyWithUTF8 (text) { - // remove html tags and trim spaces + // remove HTML tags and trim spaces let newText = stripTags(text.toString().trim()) - // replace all spaces in between to dashes + // replace space between words with dashes newText = newText.replace(/\s+/g, '-') - // slugify string to make it valid for attribute + // slugify string to make it valid as an attribute newText = newText.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, '') return newText }