Created
June 22, 2011 12:12
-
-
Save assertchris/1039952 to your computer and use it in GitHub Desktop.
Slick (MooTools) custom selector for case-insensitive content matching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Slick.definePseudo('contains-ci', function(text) { | |
return (this.innerText || this.textContent || '').match(new RegExp(text, 'ig')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment