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 7b15241 commit 3dcffadCopy full SHA for 3dcffad
src/Breinify.js
@@ -74,7 +74,7 @@
74
// check which one of the functions can be used
75
var func = null;
76
if (containsRegEx) {
77
- var typeRegEx = new RegExp(types.toString(), 'i');
+ var typeRegEx = new RegExp('^' + types.toString() + '$', 'i');
78
79
Object.keys(pointer).forEach(function (key) {
80
var matches = typeRegEx.exec(key);
0 commit comments