Fixed global quote() method

This commit is contained in:
Tobi Schäfer 2008-05-09 19:04:18 +00:00
parent f554f43d77
commit a3ec837524

View file

@ -577,7 +577,7 @@ function validateUrl(str) {
}
function quote(str) {
if (/\W\D/.test(str)) {
if (/[\W\D]/.test(str)) {
str = '"' + str + '"';
}
return str;