Skip to content

Commit 9e4d079

Browse files
committed
slight doc comment touch-up/simplification [minor]
Signed-off-by: hoijui <[email protected]>
1 parent 56cc64e commit 9e4d079

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/js/extra.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ export function renderTags (view) {
168168
}
169169

170170
function slugifyWithUTF8 (text) {
171-
// remove html tags and trim spaces
171+
// remove HTML tags and trim spaces
172172
let newText = stripTags(text.toString().trim())
173-
// replace all spaces in between to dashes
173+
// replace space between words with dashes
174174
newText = newText.replace(/\s+/g, '-')
175-
// slugify string to make it valid for attribute
175+
// slugify string to make it valid as an attribute
176176
newText = newText.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, '')
177177
return newText
178178
}

0 commit comments

Comments
 (0)