fix regex

This commit is contained in:
Alexey Kostin 2020-10-27 09:23:28 +03:00
parent 2a2e1a11f0
commit 1a0a2a7bed

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-Z]:)?\\`, key); isAbs == true {
if runtime.GOOS == "windows" {
newstructure.TorrentFilePath = key
} else { // for unix system find in search paths