Relax reNative as it's limited in scope.

This commit is contained in:
John-David Dalton
2013-12-16 21:53:01 -08:00
parent 39a8652708
commit 4026714461
7 changed files with 15 additions and 15 deletions

View File

@@ -206,7 +206,7 @@
var reNative = RegExp('^' +
String(toString)
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
.replace(/\b(function)\b.*?(?=\\\()| for .+?(?=\\\])|\btoString\b/g, '$1.*?') + '$'
.replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/** Native method shortcuts */