Only add space for forward slash

This commit is contained in:
Mel O'Hagan 2022-12-09 10:16:17 +00:00
parent 76a074faa7
commit 2530a106e9
1 changed files with 2 additions and 2 deletions

View File

@ -120,9 +120,9 @@
query.flags.urlName = true query.flags.urlName = true
query.name = query.name =
url url
?.replaceAll(/(http)|(https)/g, "") ?.replace(/(http)|(https)|[{}:]/g, "")
?.replaceAll(".", "_") ?.replaceAll(".", "_")
?.replace(/[:/{}]/g, " ") ?.replaceAll("/", " ")
?.trim() || inputUrl ?.trim() || inputUrl
} }
} }