mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
docgen: allow urls to have numbers
This commit is contained in:
parent
fd65cdc55a
commit
f6be6ace1f
@ -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);
|
||||
},
|
||||
' ' => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user