Function swc_ecma_compat_es2015::sticky_regex

source ·
pub fn sticky_regex() -> impl 'static + Fold + VisitMut
Expand description

Compile ES2015 sticky regex to an ES5 RegExp constructor

§Example

§In

/o+/y;

§Out

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