Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.expr[':'].textEquals = function(a, i, m) {
- var textToFind = m[3].replace(/[-[\]{}(')*+?.[,\\^$|#\s]/g, '\\$&'); // escape special character for regex
- return $(a).text().match("^" + textToFind + "$");
- };
Add Comment
Please, Sign In to add comment