(question: string)
| 285 | |
| 286 | /** Names written in backticks, single quotes or double quotes. */ |
| 287 | export function quotedNamesIn(question: string): string[] { |
| 288 | const found: string[] = []; |
| 289 | const pattern = /[`'"]([A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)[`'"]/g; |
| 290 | let match = pattern.exec(question); |
| 291 | while (match !== null) { |
| 292 | found.push(match[1]); |
| 293 | match = pattern.exec(question); |
| 294 | } |
| 295 | return found; |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Words shaped like a symbol: camelCase, PascalCase or dotted. |
no test coverage detected