mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
getData will now allow dashed class names; e.g. "sorter-my-custom-parser"
This commit is contained in:
parent
a1106c0fc0
commit
07d7c1c749
@ -1163,8 +1163,8 @@
|
||||
} else if (ch && typeof ch[key] !== 'undefined') {
|
||||
val += ch[key];
|
||||
} else if (cl !== ' ' && cl.match(' ' + key + '-')) {
|
||||
// include sorter class name "sorter-text", etc
|
||||
val = cl.match( new RegExp(' ' + key + '-(\\w+)') )[1] || '';
|
||||
// include sorter class name "sorter-text", etc; now works with "sorter-my-custom-parser"
|
||||
val = cl.match( new RegExp('\\s' + key + '-([\\w-]+)') )[1] || '';
|
||||
}
|
||||
return $.trim(val);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user