From 8e6f4e87c4a64583cd9ba1fc31f72003e38b8d7a Mon Sep 17 00:00:00 2001 From: giwty <0b@LonXm#fkv> Date: Thu, 24 Sep 2020 18:10:28 -0700 Subject: [PATCH] more regex fine tuning --- process/organizefolderStructure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/organizefolderStructure.go b/process/organizefolderStructure.go index f827de1..53448af 100644 --- a/process/organizefolderStructure.go +++ b/process/organizefolderStructure.go @@ -16,7 +16,7 @@ import ( var ( folderIllegalCharsRegex = regexp.MustCompile(`[/\\?%*:;=|"<>]`) - nonAscii = regexp.MustCompile("[a-zA-Z0-9áéíóú@#%&',.\\s-]") + nonAscii = regexp.MustCompile("[a-zA-Z0-9áéíóú@#%&',.\\s-\\[\\]\\(\\)\\+]") ) func DeleteOldUpdates(localDB *db.LocalSwitchFilesDB, updateProgress db.ProgressUpdater) {