Skip to main content

MAX_REGEX_BYTES

Constant MAX_REGEX_BYTES 

Source
const MAX_REGEX_BYTES: usize = _; // 1_048_576usize
Expand description

A compiled matches pattern may be at most this big: a pattern that would compile to more is an expression error, so a hostile one cannot make the compiler work without bound.