Skip to content

search: fuzzify regex patterns for suggestions if globbing is active

Administrator requested to merge sh/fuzzify into master

Created by: stefanhengl

Relates to #12476

globs without a suffix * do not match substrings, which limits the number of suggestions returned by the backend.

Example

Assume we have a repo foo with a file, bar.txt. Currently the query repo:foo file:bar will not show any suggestions, because the glob pattern bar does not match bar.txt.

With this PR we pre-process the suggestion-query in the backend to get a behavior for suggestions similar to regexp patterns.

Search results are not affected.

Merge request reports

Loading