We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d992c commit 9a0bb35Copy full SHA for 9a0bb35
src/lib/matches.js
@@ -5,5 +5,5 @@ export default function matches(str, pattern, modifiers) {
5
if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {
6
pattern = new RegExp(pattern, modifiers);
7
}
8
- return pattern.test(str);
+ return !!str.match(pattern);
9
0 commit comments