docgen: allow urls to have numbers

This commit is contained in:
Andrew Kelley 2019-04-05 17:32:19 -04:00
parent fd65cdc55a
commit f6be6ace1f
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -567,7 +567,7 @@ fn urlize(allocator: *mem.Allocator, input: []const u8) ![]u8 {
var out = &buf_adapter.stream;
for (input) |c| {
switch (c) {
'a'...'z', 'A'...'Z', '_', '-' => {
'a'...'z', 'A'...'Z', '_', '-', '0'...'9' => {
try out.writeByte(c);
},
' ' => {