Function swc_ecma_transforms_compat::es2015::sticky_regex[][src]

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