Guest User

Untitled

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