GNOME Bugzilla – Bug 792729
Allow spaces in regexes
Last modified: 2018-01-31 22:11:16 UTC
Currently our regex matching code does some special treatment of spaces. I can't recall exactly what it is, but somehow it splits at spaces, or expects spaces not to match. Spaces should not be treated in any special way, regex matching should happen on entire paragraphs (that is, stop at explicit newlines only). --- Ubuntu has a patch to recognize launchpad bug numbers like lp: #1234567, with the regex (?i:lp: #)[[:digit:]]+". When the mouse enters either "lp:" or "#1234567", the entire match is underlined and works as expected. However, if the mouse enters the space from above or below, the match is not recognized. --- Guake (version 3) has a Quick open feature, and within that a "Quick open in current terminal" with a regex "^ File \".*\", line [0-9]+". Same story here. (This feature doesn't work at all, but that's their fault.)
Created attachment 367541 [details] [review] Fix? I have no idea what I'm doing :-D I've just removed all relevant occurrences that I could quickly find where space had special treatment, and it seems to work.
Comment on attachment 367541 [details] [review] Fix? Committed.