mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
fixed url parser detection
This commit is contained in:
parent
8971b52728
commit
547ac80fbf
@ -1023,7 +1023,7 @@
|
|||||||
ts.addParser({
|
ts.addParser({
|
||||||
id: "url",
|
id: "url",
|
||||||
is: function(s) {
|
is: function(s) {
|
||||||
return (/^(https?|ftp|file):\/\/$/).test(s);
|
return (/^(https?|ftp|file):\/\//).test(s);
|
||||||
},
|
},
|
||||||
format: function(s) {
|
format: function(s) {
|
||||||
return $.trim(s.replace(/(https?|ftp|file):\/\//, ''));
|
return $.trim(s.replace(/(https?|ftp|file):\/\//, ''));
|
||||||
|
Loading…
Reference in New Issue
Block a user