MCPcopy Index your code
hub / github.com/refined-github/refined-github / splitQueryString

Function splitQueryString

source/github-helpers/search-query.ts:4–6  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

2const labelLinkRegex = /^(?:\/[^/]+){2}\/labels\/(?<label>[^/]+)\/?$/;
3
4function 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.
9function deduplicateKeywords(array: string[], ...keywords: string[]): string[] {

Callers 2

constructorMethod · 0.85
setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected