firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.21k stars 198 forks source link

In test string matches out of place #2051

Closed Redominus closed 11 months ago

Redominus commented 1 year ago

Bug Description

Blue rectangle marking the matches is out of place on test strings.

Reproduction steps

Using the following saved regex https://regex101.com/r/uj4uL4/1

Expected Outcome

Blue rectangles should be behind the matched strings

Browser

Brave Browser v1.50.125. Chromium 112.0.5615.165 Google Chrome Version 112.0.5615.165 (Official Build) (64-bit)

OS

Ubuntu Budgie 22.04.04

firasdib commented 1 year ago

Thank you for reporting this.

I was hoping this would be uncommon, but perhaps it's not ...

This is a bug in Codemirror v6, and I have made the author of the library aware of it, but as of right now, there does not seem to be any fix, and the issue is not being prioritized.

You can read more here: https://github.com/codemirror/dev/issues/1089 - hopefully enough attention can be brought for the author to look into it again.

firasdib commented 11 months ago

I've managed to fix this with the help of @marjinh. Thank you both! This will be included in the next release.