Skip to content

Commit

Permalink
Merge pull request #912 from murakami-ta/support-hyphens-in-backup-fi…
Browse files Browse the repository at this point in the history
…le-name

 Support hyphens(`-`) in backup file name patterns
  • Loading branch information
komamitsu authored Oct 29, 2024
2 parents c870a74 + 5717ff8 commit 6a34c01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 6a34c01

Please sign in to comment.