mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
lodash: Simplify reUnescaped. [jddalton]
Former-commit-id: 5daf301fb60580248d765f5d3d49e10e9fa7104b
This commit is contained in:
@@ -42,11 +42,8 @@
|
||||
/** Used to match tokens in template text */
|
||||
var reToken = /__token__(\d+)/g;
|
||||
|
||||
/**
|
||||
* Used to match unescaped characters in template text
|
||||
* (older Safari can't parse unicode escape sequences in a RegExp literals)
|
||||
*/
|
||||
var reUnescaped = RegExp('\\\\|[\'\\n\\r\\t\u2028\u2029]', 'g');
|
||||
/** Used to match unescaped characters in template text */
|
||||
var reUnescaped = /['\n\r\t\u2028\u2029\\]/g;
|
||||
|
||||
/** Used to fix the JScript [[DontEnum]] bug */
|
||||
var shadowed = [
|
||||
|
||||
Reference in New Issue
Block a user