(command: string, index: PlacementIndex)
| 180 | * als Pfad, oder der Befehl hat keine bekannte Datei genannt. |
| 181 | */ |
| 182 | export function testedPathOf(command: string, index: PlacementIndex): string { |
| 183 | for (const token of command.split(/[\s'"`;,()]+/)) { |
| 184 | const candidate = normalizePath(token); |
| 185 | if (candidate.length > 0 && index.byPath.has(candidate)) { |
| 186 | return candidate; |
| 187 | } |
| 188 | } |
| 189 | return ''; |
| 190 | } |
| 191 | |
| 192 | /** Wo dieses Ereignis liegt. */ |
| 193 | export function placeEvent( |
no test coverage detected