True for a quote that opens a string or template, not an apostrophe in JSX text.
(safe: string, i: number)
| 2359 | |
| 2360 | /** True for a quote that opens a string or template, not an apostrophe in JSX text. */ |
| 2361 | function opensString(safe: string, i: number): boolean { |
| 2362 | const ch = safe[i]; |
| 2363 | return ch === '`' || ((ch === '"' || ch === "'") && !/[\w$]/.test(safe[i - 1] ?? '')); |
| 2364 | } |
| 2365 | |
| 2366 | function skipSpace(safe: string, i: number): number { |
| 2367 | while (/\s/.test(safe[i] ?? '')) i++; |
no outgoing calls
no test coverage detected