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

Function ascii_ident_re

codegraph-kernel/src/php.rs:90–93  ·  view source on GitHub ↗

`/^[A-Za-z_]\w*$/` with JS's ASCII `\w`.

()

Source from the content-addressed store, hash-verified

88
89/// `/^[A-Za-z_]\w*$/` with JS's ASCII `\w`.
90fn ascii_ident_re() -> &'static Regex {
91 static RE: OnceLock<Regex> = OnceLock::new();
92 RE.get_or_init(|| Regex::new(r"^[A-Za-z_][0-9A-Za-z_]*$").unwrap())
93}
94/// String-callable simple-name shape (`/^[A-Za-z_][A-Za-z0-9_]*$/`).
95fn simple_callable_re() -> &'static Regex {
96 static RE: OnceLock<Regex> = OnceLock::new();

Callers 1

return_type_ofMethod · 0.70

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected