From bd0645827dc9fdc942e2ac687ca25253db266f5a Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 26 Jun 2024 02:47:15 -0700 Subject: [PATCH] Update src/router.zig --- src/router.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.zig b/src/router.zig index 793700cf67..7e9ab9355e 100644 --- a/src/router.zig +++ b/src/router.zig @@ -1203,7 +1203,7 @@ const Pattern = struct { /// `null` means invalid. Error messages are logged. /// That way, we can provide a list of all invalid routes rather than failing the first time. pub fn validate(input: string, allocator: std.mem.Allocator, log: *Logger.Log) ?ValidationResult { - if (bun.strings.isAllASCII(input)) { + if (!bun.strings.isAllASCII(input)) { const source = Logger.Source.initEmptyFile(input); log.addErrorFmt( &source,