Remove special characters from REST query name
This commit is contained in:
parent
89b0231bb9
commit
bff7365bd2
|
@ -118,7 +118,12 @@
|
||||||
function checkQueryName(inputUrl = null) {
|
function checkQueryName(inputUrl = null) {
|
||||||
if (query && (!query.name || query.flags.urlName)) {
|
if (query && (!query.name || query.flags.urlName)) {
|
||||||
query.flags.urlName = true
|
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 New Issue