Skip to content

Fix: tokens with quoted values were broken in literal mode

Warren Gifford requested to merge fa/fix-quoted-token-values-in-literal into master

Created by: attfarhan

Fixes https://github.com/sourcegraph/sourcegraph/issues/6255.

Previously, we failed to match search filters that had a quoted string as their value and recognize them as a single token.

In this PR I made it such that we match the different types of regexes sequentially, starting with specifically tokens with quoted strings as values. This fixes cases such as the one mentioned in the issue.

Merge request reports

Loading