swc_ecma_transforms_compat::es2015

Function 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")