From 3702cac56e55747c1971e93e7842d36e0eade70d Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 31 Dec 2023 15:57:39 -0600 Subject: [PATCH] Properly escape '-' in ignore filename pattern --- cmd/files.go | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/files.go b/cmd/files.go index 40a73e7..d7b0c2f 100644 --- a/cmd/files.go +++ b/cmd/files.go @@ -22,7 +22,7 @@ import ( "seedno.de/seednode/roulette/types" ) -const ignoreFilePattern string = `^[A-z0-9.-_]+$` +const ignoreFilePattern string = `^[A-z0-9.\-_]+$` type regexes struct { alphanumeric *regexp.Regexp diff --git a/cmd/root.go b/cmd/root.go index 9a858ee..2aaef1e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,7 +14,7 @@ import ( ) const ( - ReleaseVersion string = "3.5.1" + ReleaseVersion string = "3.5.2" ) var (