aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2022-10-16 16:58:46 +0200
committerr00ster91 <r00ster91@proton.me>2022-12-09 21:57:17 +0100
commit6b7d9b34e8fcefa731800cef883c2400f9f39de5 (patch)
tree695fc1d564a2bc590d9c87bca57f825d4027716e /lib/std/net.zig
parentf7fea080b25f932b352d38f126e0a179c5163f68 (diff)
downloadzig-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.zig2
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;