Skip to content

Commit

Permalink
config: relax regexp to allow non integer folders
Browse files Browse the repository at this point in the history
  • Loading branch information
gnojus committed Aug 23, 2024
1 parent e6bf98c commit 054f0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (a *account) fetchPassword(id string) error {
return err
}

var rFolder = regexp.MustCompile(`([0-9]+)\\((Multifolders|Folders|FoldersWithPlaceholders)\\[0-9]+)\\localPath`)
var rFolder = regexp.MustCompile(`([0-9]+)\\((Multifolders|Folders|FoldersWithPlaceholders)\\[^\\]+)\\localPath`)

func findFolderIDs(keys []string) map[string][]string {
debugf("config keys: %s", keys)
Expand Down

0 comments on commit 054f0c4

Please sign in to comment.