fixed url parser detection

This commit is contained in:
Rob Garrison 2012-06-03 11:06:57 -05:00
parent 8971b52728
commit 547ac80fbf

View File

@ -1023,7 +1023,7 @@
ts.addParser({
id: "url",
is: function(s) {
return (/^(https?|ftp|file):\/\/$/).test(s);
return (/^(https?|ftp|file):\/\//).test(s);
},
format: function(s) {
return $.trim(s.replace(/(https?|ftp|file):\/\//, ''));