MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / matchesString

Function matchesString

src/math-json/utils.ts:522–528  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

520}
521
522export function matchesString(s: string): boolean {
523 if (s.length >= 2 && s[0] === "'" && s[s.length - 1] === "'") {
524 return true;
525 }
526
527 return !matchesNumber(s) && !matchesSymbol(s);
528}
529
530function jsValueToExpression(v: any): MathJsonExpression | null {
531 if (typeof v === 'string') {

Callers 3

serializeExpressionFunction · 0.90
boxFunction · 0.90
parseFunction · 0.90

Calls 2

matchesNumberFunction · 0.85
matchesSymbolFunction · 0.85

Tested by

no test coverage detected