MCPcopy Create free account
hub / github.com/Snapchat/Valdi / processMatchInput

Function processMatchInput

valdi/vscode_debugger/src/targets/sourcePathResolver.ts:85–89  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

83 // whether the server is case sensitive or not.
84 const caseSensitive = isValidUrl(sourceMapUrl) ? false : getCaseSensitivePaths();
85 const processMatchInput = (value: string) => {
86 value = forceForwardSlashes(value);
87 // built-in 'nocase' match option applies only to operand; we need to normalize both
88 return caseSensitive ? value : value.toLowerCase();
89 };
90
91 return (
92 match([processMatchInput(sourcePath)], this.resolveLocations.map(processMatchInput), {

Callers 1

shouldResolveSourceMapFunction · 0.85

Calls 1

forceForwardSlashesFunction · 0.90

Tested by

no test coverage detected