Fixed global quote() method
This commit is contained in:
parent
f554f43d77
commit
a3ec837524
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ function validateUrl(str) {
|
|||
}
|
||||
|
||||
function quote(str) {
|
||||
if (/\W\D/.test(str)) {
|
||||
if (/[\W\D]/.test(str)) {
|
||||
str = '"' + str + '"';
|
||||
}
|
||||
return str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue