mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Remove unneeded _.escapeRegExp test.
This commit is contained in:
10
test/test.js
10
test/test.js
@@ -3640,16 +3640,6 @@
|
|||||||
|
|
||||||
deepEqual(actual, expected);
|
deepEqual(actual, expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work with `eval` and `Function`', 2, function() {
|
|
||||||
var actual = _.escapeRegExp(unescaped),
|
|
||||||
regexp = eval('(/' + actual + '/)');
|
|
||||||
|
|
||||||
ok(regexp.test(unescaped));
|
|
||||||
|
|
||||||
regexp = Function('return /' + actual + '/')();
|
|
||||||
ok(regexp.test(unescaped));
|
|
||||||
});
|
|
||||||
}());
|
}());
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user