(s: string)
| 520 | } |
| 521 | |
| 522 | export 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 | |
| 530 | function jsValueToExpression(v: any): MathJsonExpression | null { |
| 531 | if (typeof v === 'string') { |
no test coverage detected