diff options
| author | r00ster91 <r00ster91@proton.me> | 2022-10-16 16:58:46 +0200 |
|---|---|---|
| committer | r00ster91 <r00ster91@proton.me> | 2022-12-09 21:57:17 +0100 |
| commit | 6b7d9b34e8fcefa731800cef883c2400f9f39de5 (patch) | |
| tree | 695fc1d564a2bc590d9c87bca57f825d4027716e /lib/std/net.zig | |
| parent | f7fea080b25f932b352d38f126e0a179c5163f68 (diff) | |
| download | zig-6b7d9b34e8fcefa731800cef883c2400f9f39de5.tar.gz zig-6b7d9b34e8fcefa731800cef883c2400f9f39de5.zip | |
api(std.ascii): remove deprecated decls
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 9ee6bb4d79..6818b91d5a 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -1192,7 +1192,7 @@ pub fn isValidHostName(hostname: []const u8) bool { if (hostname.len >= 254) return false; if (!std.unicode.utf8ValidateSlice(hostname)) return false; for (hostname) |byte| { - if (byte >= 0x80 or byte == '.' or byte == '-' or std.ascii.isAlNum(byte)) { + if (!std.ascii.isASCII(byte) or byte == '.' or byte == '-' or std.ascii.isAlphanumeric(byte)) { continue; } return false; |
