Skip to content

insights: Truncate capture group matches to 100 characters

Administrator requested to merge insights/max-char into main

Created by: CristinaBirkel

Closes https://github.com/sourcegraph/sourcegraph/issues/41216

Description

This ensures that we won't have any ridiculously long matches.

Test plan

You can try a query like /query(.*)string/ to test it out. Also added a couple of unit tests.

Merge request reports

Loading