Fix isAbs regexp case

This commit is contained in:
Alexey Kostin 2021-01-10 16:49:16 +03:00
parent 725a6bb260
commit f6b36ed9e9

View File

@ -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