diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2025-02-09 08:11:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-02-10 07:06:08 +0000 |
| commit | 4e5ad6e013666e4724b4de4273ac445adceb0865 (patch) | |
| tree | d3b93bc03fbcc6d8217a60d47ac39c6e2a5917c7 /scripts | |
| parent | config: regex: fix invalid free (diff) | |
Fix URL detection regression on lines with NUL bytes
Commit 859b4c89 (url-mode: wip: more work on regex matching,
2025-01-30) regressed URL detection in weechat. Some of the URLs
still work but others don't. This is because regexec() stops at the
first NUL, thus skipping the rest of the line. weechat seems create
NUL cells between their UI widgets.
Work around this by replacing NUL with space. This is probably correct
because selecting and copying those cells also translates to space
(not sure where in the code).
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
