Skip to main content

build_regexp

Function build_regexp 

Source
pub fn build_regexp(pattern: &str, flags: &str) -> Result<Value, String>
Expand description

Build a RegExp value from a JS pattern + flags, or a SyntaxError if the pattern uses an unsupported construct or is otherwise invalid.