MCPcopy
hub / github.com/di-sukharev/opencommit / isQuoted

Function isQuoted

out/cli.cjs:2294–2296  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

2292 return out;
2293 };
2294 var isQuoted = (val) => {
2295 return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
2296 };
2297 var safe = (val) => {
2298 if (typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
2299 return JSON.stringify(val);

Callers 2

safeFunction · 0.85
unsafeFunction · 0.85

Calls 2

startsWithMethod · 0.80
endsWithMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…