A method group's `receiver.Member` (function-ref.ts member_access_expression): `/^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/` with JS's ASCII `\w`.
()
| 77 | /// A method group's `receiver.Member` (function-ref.ts member_access_expression): |
| 78 | /// `/^[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)+$/` with JS's ASCII `\w`. |
| 79 | fn member_value_re() -> &'static Regex { |
| 80 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 81 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_][0-9A-Za-z_]*(?:\.[A-Za-z_][0-9A-Za-z_]*)+$").unwrap()) |
| 82 | } |
| 83 | /// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (Rust's default `\w` is Unicode). |
| 84 | fn ascii_ident_re() -> &'static Regex { |
| 85 | static RE: OnceLock<Regex> = OnceLock::new(); |
no test coverage detected