From 6b4a2c1c4e9cf3a6cc3b785dcdc180a17eb9be0a Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 17 Sep 2022 09:49:55 +0200 Subject: [PATCH] fspath: remove superfluous underscore covered by existing word character class in remote name regex --- fs/fspath/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fspath/path.go b/fs/fspath/path.go index 285d843ff..7f0868b8f 100644 --- a/fs/fspath/path.go +++ b/fs/fspath/path.go @@ -13,7 +13,7 @@ import ( ) const ( - configNameRe = `[\w_. -]+` + configNameRe = `[\w. -]+` remoteNameRe = `^(:?` + configNameRe + `)` )