diff --git a/fluency-core/src/main/java/org/komamitsu/fluency/buffer/FileBackup.java b/fluency-core/src/main/java/org/komamitsu/fluency/buffer/FileBackup.java index 5e003951..b8e17eb0 100644 --- a/fluency-core/src/main/java/org/komamitsu/fluency/buffer/FileBackup.java +++ b/fluency-core/src/main/java/org/komamitsu/fluency/buffer/FileBackup.java @@ -54,7 +54,7 @@ public FileBackup(File backupDir, Buffer userBuffer, String prefix) this.backupDir = backupDir; this.userBuffer = userBuffer; this.prefix = prefix; - this.pattern = Pattern.compile(userBuffer.bufferFormatType() + prefix() + PARAM_DELIM_IN_FILENAME + "([\\w\\." + PARAM_DELIM_IN_FILENAME + "]+)" + EXT_FILENAME); + this.pattern = Pattern.compile(userBuffer.bufferFormatType() + prefix() + PARAM_DELIM_IN_FILENAME + "([\\w\\.\\-" + PARAM_DELIM_IN_FILENAME + "]+)" + EXT_FILENAME); LOG.debug(this.toString()); }