diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-09-13 08:38:31 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-09-13 08:38:31 +0200 |
commit | 0def9262c5a7d9ebf55d08caff3b05ce82cd2dc1 (patch) | |
tree | eaf98d57b19343eda1f75b39a0e25dbc202b2c60 | |
parent | 7363c073479a980fe10d56bd7867813e88b63847 (diff) |
Don't let URI schemes start with spaces.
-rw-r--r-- | src/scanners.re | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanners.re b/src/scanners.re index 07396f3..7ecf358 100644 --- a/src/scanners.re +++ b/src/scanners.re @@ -71,7 +71,7 @@ bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, in_single_quotes = ['] (escaped_char|[^'\x00])* [']; in_parens = [(] (escaped_char|[^)\x00])* [)]; - scheme = [A-Za-z ][A-Za-z0-9.+-]{1,31}; + scheme = [A-Za-z][A-Za-z0-9.+-]{1,31}; */ // Try to match a scheme including colon. |