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

Function ruby_sym_re

codegraph-kernel/src/ruby.rs:52–55  ·  view source on GitHub ↗

The hook-DSL symbol shape (`/^[A-Za-z_][A-Za-z0-9_?!]*$/`).

()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected