From fc0c9974b14ef9f7b4d4662842d9d3dbb2fde112 Mon Sep 17 00:00:00 2001 From: Seednode Date: Thu, 7 Sep 2023 16:20:48 -0500 Subject: [PATCH] Simplified alphanumeric regex --- cmd/root.go | 2 +- cmd/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 6ba4652..f01f1d3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ var ( ) const ( - Version string = "0.57.4" + Version string = "0.57.5" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 05d99ef..37088d7 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -986,7 +986,7 @@ func ServePage(args []string) error { Regexes := &Regexes{ filename: regexp.MustCompile(`(.+)([0-9]{3})(\..+)`), - alphanumeric: regexp.MustCompile(`^[a-zA-Z0-9]*$`), + alphanumeric: regexp.MustCompile(`^[A-z0-9]*$`), } srv := &http.Server{