Skip to content

Commit 7b2fec2

Browse files
authored
Merge pull request oetiker#264 from hadfl/snap_filter_fix
- escape '.' for snapshot filter
2 parents f740ff0 + 1c72924 commit 7b2fec2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/ZnapZend/Time.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ sub getSnapshotFilter {
243243
$timeFormat =~ s/%[mdHMS]/\\d{2}/g;
244244
$timeFormat =~ s/%Y/\\d{4}/g;
245245

246+
# escape dot ('.') character
247+
$timeFormat =~ s/\./\\./g;
248+
246249
return $timeFormat;
247250
}
248251

0 commit comments

Comments
 (0)