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

Function isPlausibleCodeFilePath

packages/shared/code-file.ts:7–9  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

5const IMPLAUSIBLE_CHARS = /[{},*?\s]/;
6
7export function isPlausibleCodeFilePath(input: string): boolean {
8 return !IMPLAUSIBLE_CHARS.test(input);
9}
10
11export interface ParsedCodePath {
12 filePath: string;

Callers 2

code-file.test.tsFile · 0.90
isCodeFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected