summaryrefslogtreecommitdiff
path: root/src/scanners.re
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanners.re')
-rw-r--r--src/scanners.re2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanners.re b/src/scanners.re
index a7548ac..8b1c91e 100644
--- a/src/scanners.re
+++ b/src/scanners.re
@@ -215,7 +215,7 @@ bufsize_t _scan_link_url(const unsigned char *p)
const unsigned char *start = p;
/*!re2c
[ \r\n]* [<] ([^<> \t\r\n\\\x00] | escaped_char | [\\])* [>] { return (bufsize_t)(p - start); }
- [ \r\n]* (reg_char+ | escaped_char | [\\] | in_parens_nosp)* { return (bufsize_t)(p - start); }
+ [ \r\n]* (reg_char+ | escaped_char | [\\] [^() \t\v\f\r\n] | in_parens_nosp)* [\\]? { return (bufsize_t)(p - start); }
.? { return 0; }
*/
}