Skip to content

Commit

Permalink
web: update tooltips to be agnostic of regex and globbing (#12514)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Jul 28, 2020
1 parent fb3ab21 commit 66de79d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shared/src/search/parser/filters.ts
Expand Up @@ -86,7 +86,7 @@ export const FILTERS: Record<NegatableFilter, NegatableFilterDefinition> &
alias: 'f',
negatable: true,
description: negated =>
`${negated ? 'Exclude' : 'Include only'} results from files matching the given regex pattern.`,
`${negated ? 'Exclude' : 'Include only'} results from files matching the given search pattern.`,
suggestions: 'File',
},
[FilterType.fork]: {
Expand Down Expand Up @@ -116,7 +116,7 @@ export const FILTERS: Record<NegatableFilter, NegatableFilterDefinition> &
alias: 'r',
negatable: true,
description: negated =>
`${negated ? 'Exclude' : 'Include only'} results from repositories matching the given regex pattern.`,
`${negated ? 'Exclude' : 'Include only'} results from repositories matching the given search pattern.`,
suggestions: 'Repository',
},
[FilterType.repogroup]: {
Expand Down
4 changes: 2 additions & 2 deletions shared/src/search/parser/hover.test.ts
Expand Up @@ -8,7 +8,7 @@ describe('getHoverResult()', () => {
expect(getHoverResult(parsedQuery, { column: 4 })).toStrictEqual({
contents: [
{
value: 'Include only results from repositories matching the given regex pattern.',
value: 'Include only results from repositories matching the given search pattern.',
},
],
range: {
Expand All @@ -21,7 +21,7 @@ describe('getHoverResult()', () => {
expect(getHoverResult(parsedQuery, { column: 30 })).toStrictEqual({
contents: [
{
value: 'Include only results from files matching the given regex pattern.',
value: 'Include only results from files matching the given search pattern.',
},
],
range: {
Expand Down

0 comments on commit 66de79d

Please sign in to comment.