This commit is contained in:
Mel O'Hagan 2023-01-10 17:00:18 +00:00
parent dd4fbd075a
commit 77ff0d36b7
1 changed files with 7 additions and 9 deletions

View File

@ -117,15 +117,13 @@
)
}
function cleanUrl(inputUrl) {
return (
const cleanUrl = inputUrl =>
url
?.replace(/(http)|(https)|[{}:]/g, "")
?.replaceAll(".", "_")
?.replaceAll("/", " ")
?.trim() || inputUrl
)
}
function checkQueryName(inputUrl = null) {
if (query && (!query.name || query.flags.urlName)) {
query.flags.urlName = true