insights: Truncate capture group matches to 100 characters
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.