Update src/router.zig

This commit is contained in:
Jarred Sumner
2024-06-26 02:47:15 -07:00
committed by GitHub
parent fa3469dbc3
commit bd0645827d

View File

@@ -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,