The #750 re-encode gate (`/^[A-Z]/`).
()
| 109 | } |
| 110 | /// The #750 re-encode gate (`/^[A-Z]/`). |
| 111 | fn starts_upper_re() -> &'static Regex { |
| 112 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 113 | RE.get_or_init(|| Regex::new(r"^[A-Z]").unwrap()) |
| 114 | } |
| 115 | /// JS `\s+` for the re-encode/return-type strips (Unicode whitespace). |
| 116 | fn ws_re() -> &'static Regex { |
| 117 | static RE: OnceLock<Regex> = OnceLock::new(); |