mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tags: fix tag categories with spaces
This commit is contained in:
@ -220,6 +220,10 @@ function confirmPageExit() {
|
||||
}
|
||||
}
|
||||
|
||||
function makeCssName(text, suffix) {
|
||||
return suffix + '-' + text.replace(/[^a-z0-9]/g, '_');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
range: range,
|
||||
formatSearchQuery: formatSearchQuery,
|
||||
@ -232,4 +236,5 @@ module.exports = {
|
||||
enableExitConfirmation: enableExitConfirmation,
|
||||
disableExitConfirmation: disableExitConfirmation,
|
||||
confirmPageExit: confirmPageExit,
|
||||
makeCssName: makeCssName,
|
||||
};
|
||||
|
Reference in New Issue
Block a user