True for a quote that opens a string or template, not an apostrophe in JSX text.
(safe: string, i: number)
| 2381 | |
| 2382 | /** True for a quote that opens a string or template, not an apostrophe in JSX text. */ |
| 2383 | function opensString(safe: string, i: number): boolean { |
| 2384 | const ch = safe[i]; |
| 2385 | return ch === '`' || ((ch === '"' || ch === "'") && !/[\w$]/.test(safe[i - 1] ?? '')); |
| 2386 | } |
| 2387 | |
| 2388 | function skipSpace(safe: string, i: number): number { |
| 2389 | while (/\s/.test(safe[i] ?? '')) i++; |
no outgoing calls
no test coverage detected