compile_pattern

Function compile_pattern 

Source
fn compile_pattern(
    cx: JSContext,
    pattern_str: &str,
    out_regex: MutableHandleObject<'_>,
    can_gc: CanGc,
) -> bool
Expand description

This is used to compile JS-compatible regex provided in pattern attribute that matches only the entirety of string. https://html.spec.whatwg.org/multipage/#compiled-pattern-regular-expression