Skip to main content

perl_regex/validator/
config.rs

1#[derive(Debug, Clone, PartialEq, Eq)]
2pub struct RegexValidationConfig {
3    pub max_nesting: usize,
4    pub max_unicode_properties: usize,
5    pub max_branch_reset_branches: usize,
6}
7
8impl Default for RegexValidationConfig {
9    fn default() -> Self {
10        Self { max_nesting: 10, max_unicode_properties: 50, max_branch_reset_branches: 50 }
11    }
12}