Fix:Adding podcast and filename sanitize func #1290

This commit is contained in:
advplyr 2022-12-19 15:02:31 -06:00
parent b7abd372e4
commit 8f49aae979
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ Vue.prototype.$sanitizeFilename = (filename, colonReplacement = ' - ') => {
const windowsTrailingRe = /[\. ]+$/
const lineBreaks = /[\n\r]/g
sanitized = filename
let sanitized = filename
.replace(':', colonReplacement) // Replace first occurrence of a colon
.replace(illegalRe, replacement)
.replace(controlRe, replacement)

View File

@ -197,7 +197,7 @@ module.exports.sanitizeFilename = (filename, colonReplacement = ' - ') => {
const windowsTrailingRe = /[\. ]+$/
const lineBreaks = /[\n\r]/g
sanitized = filename
let sanitized = filename
.replace(':', colonReplacement) // Replace first occurrence of a colon
.replace(illegalRe, replacement)
.replace(controlRe, replacement)