The hook-DSL symbol shape (`/^[A-Za-z_][A-Za-z0-9_?!]*$/`).
()
| 49 | |
| 50 | /// The hook-DSL symbol shape (`/^[A-Za-z_][A-Za-z0-9_?!]*$/`). |
| 51 | fn ruby_sym_re() -> &'static Regex { |
| 52 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 53 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_][A-Za-z0-9_?!]*$").unwrap()) |
| 54 | } |
| 55 | |
| 56 | /// Node `path.posix.normalize` for the require_relative path join |
| 57 | /// (emitRubyRequireRefs): resolve `.`/`..` lexically, collapse `//`, keep |
no test coverage detected