Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

insights: correctness issue with multiple whitespace characters #44965

@coury-clark

Description

@coury-clark

Code Insights seems to be overcounting in some scenarios with multiple whitespace characters in a sequence.
For example, in sourcegraph/sourcegraph:

patternType:regexp case:yes \sversion\s*<

image

Clicking on the preview results button generated a different count:

image

Other example queries:
https://demo.sourcegraph.com/search?q=context%3Aglobal+repo%3A%5E%28github%5C.com%2Fsourcegraph%2Fsourcegraph%29%24+%5CsInsight%5Cs%5Cs%2B%3C+count%3Aall&patternType=regexp&groupBy=author

/cc @Joelkw @felixfbecker @vovakulikov

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.code-insightsIssues related to the Code Insights product

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions