mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Update src/router.zig
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user