()
| 88 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap()) |
| 89 | } |
| 90 | fn cap_ident_re() -> &'static Regex { |
| 91 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 92 | RE.get_or_init(|| Regex::new(r"^[A-Z][A-Za-z0-9_]*$").unwrap()) |
| 93 | } |
| 94 | /// The chained-call re-encode gate (`/^[A-Z]/`). |
| 95 | fn starts_upper_re() -> &'static Regex { |
| 96 | static RE: OnceLock<Regex> = OnceLock::new(); |
no test coverage detected