swc_ecma_compat_es2015

Function sticky_regex

source
pub fn sticky_regex() -> impl Pass
Expand description

Compile ES2015 sticky regex to an ES5 RegExp constructor

§Example

§In

/o+/y;

§Out

new RegExp("o+", "y")