Skip to main content

split_regex_flags

Function split_regex_flags 

Source
pub fn split_regex_flags(literal: &str) -> (String, String)
Expand description

K6c (#2600): a checked regex literal as the emitter writes it, the pattern and its RegExp flags. The checker has already refused a malformed flag group, so this only splits.