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

Function ruby_sym_re

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

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

()

Source from the content-addressed store, hash-verified

49
50/// The hook-DSL symbol shape (`/^[A-Za-z_][A-Za-z0-9_?!]*$/`).
51fn 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

Callers 1

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected