requested to merge Vanadiae/gnome-builder:fix-non-alnum-filenames-grep into main
Currently when doing a search that includes files that contain @, like email@example.com, the filename extracted from the grep output with the regex is incomplete as it instead thinks the filename is valencia.po. So when accessing the line location, it opens an empty file because obviously valencia.po doesn't exist, whereas firstname.lastname@example.org does exist.
Anyway, the regex that extracts the file name, line number and line content is too restrictive in what in detects as being valid for a filename. It only accepts alphanumerical characters and characters contained in [-_+.]. As such, there's not much reason to restrict so much the set of allowed characters for a filename, so it's better to allow all of them except the colon (as that's the field separator between filename and line number).
Fixes #1587 (closed)