Remove special characters from REST query name
This commit is contained in:
parent
89b0231bb9
commit
bff7365bd2
3 changed files with 47 additions and 3359 deletions
|
@ -118,7 +118,12 @@
|
|||
function checkQueryName(inputUrl = null) {
|
||||
if (query && (!query.name || query.flags.urlName)) {
|
||||
query.flags.urlName = true
|
||||
query.name = url || inputUrl
|
||||
query.name =
|
||||
url
|
||||
?.replaceAll(/(http)|(https)/g, "")
|
||||
?.replaceAll(".", "_")
|
||||
?.replace(/[:/{}]/g, " ")
|
||||
?.trim() || inputUrl
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue