( content: string, verb: GroupableFileActivityVerb )
| 2488 | } |
| 2489 | |
| 2490 | function getFileActivityTargetText( |
| 2491 | content: string, |
| 2492 | verb: GroupableFileActivityVerb |
| 2493 | ) { |
| 2494 | const pattern = new RegExp(`^${verb}\\s+(.+)$`, "i") |
| 2495 | return stripActivityCount(content) |
| 2496 | .match(pattern)?.[1] |
| 2497 | ?.replace(/:\s*.*$/, "") |
| 2498 | .replace(/\s+\+\d+$/i, "") |
| 2499 | .trim() |
| 2500 | } |
| 2501 | |
| 2502 | function getFileActivityTargetsFromTargetText(targetText: string) { |
| 2503 | const targets = targetText.split(/\s*,\s*/).filter(Boolean) |
no test coverage detected