diff options
author | hoijui | 2019-10-21 08:26:42 +0200 |
---|---|---|
committer | hoijui | 2019-10-22 09:02:40 +0200 |
commit | 20adab2f32a785c2dedcd42ee8e0750039fd9dd9 (patch) | |
tree | da69ff558245083448a3f0f5bb3a84a57c702e30 | |
parent | 145285abf60665e624272c965e25d765983c1775 (diff) |
slight doc comment touch-up/simplification [minor]
Signed-off-by: hoijui <hoijui.quaero@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 4431513d..91984c2c 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -164,11 +164,11 @@ export function renderTags (view) { } function slugifyWithUTF8 (text) { - // remove html tags and trim spaces + // remove HTML tags and trim spaces let newText = S(text).trim().stripTags().s - // 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 } |