Skip to content

Commit 3dcffad

Browse files
committed
added first and last regex matcher for method signature
1 parent 7b15241 commit 3dcffad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Breinify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
// check which one of the functions can be used
7575
var func = null;
7676
if (containsRegEx) {
77-
var typeRegEx = new RegExp(types.toString(), 'i');
77+
var typeRegEx = new RegExp('^' + types.toString() + '$', 'i');
7878

7979
Object.keys(pointer).forEach(function (key) {
8080
var matches = typeRegEx.exec(key);

0 commit comments

Comments
 (0)