aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/meson.build
diff options
context:
space:
mode:
authorJuhani Krekelä2021-07-08 09:14:41 +0300
committerWolfgang Müller2021-07-09 11:53:32 +0200
commit59767124ed7768c82621c414549d24d33096b16e (patch)
treef51b17df5e25d0656eb898305f4b1726ea27e980 /meson.build
parent8ad81eb268df5984fcffd0a18b9c68e254094956 (diff)
downloadweltschmerz-59767124ed7768c82621c414549d24d33096b16e.tar.gz
Improve URL matching
Currently the weltschmerz URL regex does not match URLs with quotes or parentheses, considering the URL to end when one is encountered. On the other hand, if a URL is surrounded by angle brackets it includes the closing '>' in the URL match. Additionally, the regex allows URL to contain a space if and only if it is the second character of the host component of the URL. Most of this appears to be down to bugs in the regex as it is currently written. This rewrites the regex to be cleaner and easier to read, while maintaining the intended logic of the original.
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions