mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 20:07:49 +00:00
Simplify the _.support.dom check.
This commit is contained in:
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -206,7 +206,7 @@
|
||||
var reNative = RegExp('^' +
|
||||
String(toString)
|
||||
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
||||
.replace(/toString| for [^\]]+/g, '.*?') + '$'
|
||||
.replace(/\b(function)\b.*?(?=\\\()| for .+?(?=\\\])|\btoString\b/g, '$1.*?') + '$'
|
||||
);
|
||||
|
||||
/** Native method shortcuts */
|
||||
|
||||
Reference in New Issue
Block a user