MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / ascii_ident_re

Function ascii_ident_re

codegraph-kernel/src/csharp.rs:84–87  ·  view source on GitHub ↗

`/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (Rust's default `\w` is Unicode).

()

Source from the content-addressed store, hash-verified

82}
83/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w` (Rust's default `\w` is Unicode).
84fn ascii_ident_re() -> &'static Regex {
85 static RE: OnceLock<Regex> = OnceLock::new();
86 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][0-9A-Za-z_]*$").unwrap())
87}
88/// extractStaticMemberRef's capitalized-receiver test.
89fn capitalized_re() -> &'static Regex {
90 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected