From f6b36ed9e9c54e37d6d1b1f25a5ec232618d2781 Mon Sep 17 00:00:00 2001 From: Alexey Kostin Date: Sun, 10 Jan 2021 16:49:16 +0300 Subject: [PATCH] Fix isAbs regexp case --- bt2qbt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt2qbt.go b/bt2qbt.go index d580edb..14d99c1 100644 --- a/bt2qbt.go +++ b/bt2qbt.go @@ -163,7 +163,7 @@ func logic(key string, value map[string]interface{}, flags *Flags, chans *Channe Separator: flags.PathSeparator, } - if isAbs, _ := regexp.MatchString(`^([A-Z]:)?\\`, key); isAbs == true { + if isAbs, _ := regexp.MatchString(`^([A-Za-z]:)?\\`, key); isAbs == true { if runtime.GOOS == "windows" { newstructure.TorrentFilePath = key } else { // for unix system find in search paths