MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / safeDecode

Function safeDecode

packages/cli/src/cli/utils/key-matching.ts:6–12  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

4 * Safely decodes a URI component, returning the original string if decoding fails.
5 */
6export function safeDecode(value: string): string {
7 try {
8 return decodeURIComponent(value);
9 } catch {
10 return value;
11 }
12}
13
14/**
15 * Checks if a key matches any of the provided patterns using exact, separator-bounded prefix, or glob matching.

Callers 2

purge.tsFile · 0.90
computeProcessableDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected