MCPcopy Create free account
hub / github.com/Noumena-Network/code / isSafeIdentifier

Function isSafeIdentifier

src/tools/REPLTool/javascriptReplFactory.tsx:248–250  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

246}
247
248function isSafeIdentifier(name: string): boolean {
249 return /^[$A-Z_a-z][$\w]*$/.test(name)
250}
251
252function ensureRuntimeHelpers(
253 replContext: JavascriptReplStoreContext,

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected