You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
586 B

define: DUK_USE_ES6_REGEXP_BRACES
feature_enables: DUK_OPT_ES6_REGEXP_BRACES
introduced: 1.5.0
default: true
tags:
- ecmascript6
description: >
Enable support for unescaped '{' and '}' literals in regular expressions,
which is an ES6 Appendix feature (and non-standard before ES6). Ecmascript
E5 requires literal curly braces to be escaped, but most Ecmascript engines
support them when they are not used in valid quantifier, and this behavior
has been added to ES6 Appendix.
This option is recommended because a lot of existing code depends on literal
regexp braces.