[][src]Function swc_ecma_transforms::compat::es2015::sticky_regex

pub fn sticky_regex() -> impl 'static + Fold

Compile ES2015 sticky regex to an ES5 RegExp constructor

Example

In

/o+/y;

Out

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