Correct underscore builds.

This commit is contained in:
John-David Dalton
2014-03-09 12:25:33 -07:00
parent 125ed8bff2
commit db6f907946
2 changed files with 4 additions and 2 deletions

View File

@@ -4154,7 +4154,9 @@
* // => true
*/
function isRegExp(value) {
return value && typeof value == 'object' && toString.call(value) == regexpClass || false;
var type = typeof value;
return value && (type == 'function' || type == 'object') &&
toString.call(value) == regexpClass || false;
}
/**