(name: string)
| 38 | * discarded to avoid noise. |
| 39 | */ |
| 40 | export function splitIdentifier(name: string): string[] { |
| 41 | return name |
| 42 | .replace(/([a-z])([A-Z])/g, '$1 $2') |
| 43 | .split(/[-_./\s]+/) |
| 44 | .map(w => w.trim()) |
| 45 | .filter(w => w.length > 2 && w.length <= 20) |
| 46 | } |
| 47 | |
| 48 | function fileNameWords(filePath: string): string[] { |
| 49 | const stem = basename(filePath).replace(/\.[^.]+$/, '') |
no outgoing calls
no test coverage detected