MCPcopy Create free account
hub / github.com/backnotprop/plannotator / stripAtPrefix

Function stripAtPrefix

packages/shared/at-reference.ts:29–32  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

27 * Does not recurse: `@@foo` becomes `@foo`, not `foo`.
28 */
29export function stripAtPrefix(input: string): string {
30 const unquoted = stripWrappingQuotes(input);
31 return unquoted.startsWith("@") ? unquoted.slice(1) : unquoted;
32}
33
34/**
35 * Resolve an `@`-prefixed user input by trying the stripped form first

Callers 4

parseAnnotateArgsFunction · 0.90
index.tsFile · 0.90
resolveAtReferenceFunction · 0.85

Calls 1

stripWrappingQuotesFunction · 0.90

Tested by

no test coverage detected