Refactor
This commit is contained in:
parent
dd4fbd075a
commit
77ff0d36b7
|
@ -117,15 +117,13 @@
|
|||
)
|
||||
}
|
||||
|
||||
function cleanUrl(inputUrl) {
|
||||
return (
|
||||
url
|
||||
?.replace(/(http)|(https)|[{}:]/g, "")
|
||||
?.replaceAll(".", "_")
|
||||
?.replaceAll("/", " ")
|
||||
?.trim() || inputUrl
|
||||
)
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue