String-callable simple-name shape (`/^[A-Za-z_][A-Za-z0-9_]*$/`).
()
| 93 | } |
| 94 | /// String-callable simple-name shape (`/^[A-Za-z_][A-Za-z0-9_]*$/`). |
| 95 | fn simple_callable_re() -> &'static Regex { |
| 96 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 97 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_][A-Za-z0-9_]*$").unwrap()) |
| 98 | } |
| 99 | /// String-callable qualified shape (`/^\w+::\w+$/`, JS ASCII `\w`). |
| 100 | fn qualified_callable_re() -> &'static Regex { |
| 101 | static RE: OnceLock<Regex> = OnceLock::new(); |
no test coverage detected