()
| 74 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap()) |
| 75 | } |
| 76 | fn cap_ident_re() -> &'static Regex { |
| 77 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 78 | RE.get_or_init(|| Regex::new(r"^[A-Z][A-Za-z0-9_]*$").unwrap()) |
| 79 | } |
| 80 | /// The chained-call re-encode gate (`/^[A-Z]/`). |
| 81 | fn starts_upper_re() -> &'static Regex { |
| 82 | static RE: OnceLock<Regex> = OnceLock::new(); |
no test coverage detected