(query: string)
| 2 | const labelLinkRegex = /^(?:\/[^/]+){2}\/labels\/(?<label>[^/]+)\/?$/; |
| 3 | |
| 4 | function splitQueryString(query: string): string[] { |
| 5 | return query.match(queryPartsRegExp) ?? []; |
| 6 | } |
| 7 | |
| 8 | // Remove all keywords from array except the last occurrence of one of the keywords. |
| 9 | function deduplicateKeywords(array: string[], ...keywords: string[]): string[] { |
no outgoing calls
no test coverage detected