[Reproducible-commits] [strip-nondeterminism] 01/01: Improve detection of timestamps in pom.properties files
Reiner Herrmann
deki-guest at moszumanska.debian.org
Sat Mar 21 22:19:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository strip-nondeterminism.
commit 12830b327a757e9cd53f00d539d2b2abdedf94b7
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Sat Mar 21 23:17:33 2015 +0100
Improve detection of timestamps in pom.properties files
---
lib/File/StripNondeterminism/handlers/javaproperties.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/File/StripNondeterminism/handlers/javaproperties.pm b/lib/File/StripNondeterminism/handlers/javaproperties.pm
index 6e3538e..4c54579 100644
--- a/lib/File/StripNondeterminism/handlers/javaproperties.pm
+++ b/lib/File/StripNondeterminism/handlers/javaproperties.pm
@@ -45,7 +45,7 @@ sub normalize {
# It should appear within first 10 lines.
while (defined(my $line = <$fh>) && $. <= 10) {
# Yes, there really is no comma here
- if ($line =~ /^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3} \d{4}\s*$/) {
+ if ($line =~ /^#\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} \w{3,4}([+-]\d{2}:\d{2})? \d{4}\s*$/) {
$line = '';
print $tempfile $line;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git
More information about the Reproducible-commits
mailing list