From 05489e629eb2daedd304782920ba033bb309cbfe Mon Sep 17 00:00:00 2001 From: momo Date: Fri, 25 Sep 2015 13:00:10 -0400 Subject: [PATCH] fix regext --- Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java b/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java index 9ad957d8c3..71494eae68 100644 --- a/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java +++ b/Core/src/org/sleuthkit/autopsy/coreutils/FileUtil.java @@ -165,6 +165,6 @@ public class FileUtil { public static String escapeFileName(String fileName) { //for now escaping /:"*?<>| (not valid in file name, at least on Windows) //with underscores. We are only keeping \ as it could be part of the path. - return fileName.replaceAll("[\\/:\"*?<>|]+", "_"); + return fileName.replaceAll("[/:\"*?<>|]+", "_"); } }