mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-02 13:34:53 +02:00
Added an option to change date format
This commit is contained in:
parent
c2e90d4d83
commit
9ba0e52bb7
5 changed files with 37 additions and 6 deletions
|
@ -169,7 +169,7 @@ Vue.prototype.$sanitizeSlug = (str) => {
|
|||
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i))
|
||||
}
|
||||
|
||||
str = str.replace('.', '-') // replace a dot by a dash
|
||||
str = str.replace('.', '-') // replace a dot by a dash
|
||||
.replace(/[^a-z0-9 -_]/g, '') // remove invalid chars
|
||||
.replace(/\s+/g, '-') // collapse whitespace and replace by a dash
|
||||
.replace(/-+/g, '-') // collapse dashes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue