summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-09-13 08:37:01 +0200
committerGitHub <noreply@github.com>2016-09-13 08:37:01 +0200
commit7363c073479a980fe10d56bd7867813e88b63847 (patch)
tree7ca9835c7d5fd7aa0b42954bc74b8c77a8f37dac /src
parentfae6a253d2f0c79eb34b0bf83ca484c93484f5a5 (diff)
parent2a42cd882110cb6168f866679dce5b3a60c78b1e (diff)
Merge pull request #153 from gaborcsardi/patch-1
autolink scheme can contain digits
Diffstat (limited to 'src')
-rw-r--r--src/scanners.re2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanners.re b/src/scanners.re
index fdb3d8e..07396f3 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-z.+-]{1,31};
+ scheme = [A-Za-z ][A-Za-z0-9.+-]{1,31};
*/
// Try to match a scheme including colon.