[Reproducible-commits] [strip-nondeterminism] 03/05: javadoc: Preserve case when normalizing <META NAME="date">
Andrew Ayer
agwa at andrewayer.name
Thu Feb 5 18:22:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
agwa-guest pushed a commit to branch master
in repository strip-nondeterminism.
commit 9a2cfe785f5244685cdbba6f8265ea3b5ec7d19a
Author: Andrew Ayer <agwa at andrewayer.name>
Date: Thu Feb 5 10:20:27 2015 -0800
javadoc: Preserve case when normalizing <META NAME="date">
---
lib/File/StripNondeterminism/handlers/javadoc.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/File/StripNondeterminism/handlers/javadoc.pm b/lib/File/StripNondeterminism/handlers/javadoc.pm
index 59f2519..88cf489 100644
--- a/lib/File/StripNondeterminism/handlers/javadoc.pm
+++ b/lib/File/StripNondeterminism/handlers/javadoc.pm
@@ -51,7 +51,7 @@ sub normalize {
} elsif ($line =~ /\<META NAME="date" CONTENT="[^"]*"\>/i) {
if (defined $File::StripNondeterminism::canonical_time) {
my $date = strftime('%Y-%m-%d', localtime($File::StripNondeterminism::canonical_time));
- $line =~ s/\<META NAME="date" CONTENT="[^"]*"\>/<META NAME="date" CONTENT="$date">/gi;
+ $line =~ s/\<(META NAME="date" CONTENT)="[^"]*"\>/<$1="$date">/gi;
} else {
$line =~ s/\<META NAME="date" CONTENT="[^"]*"\>//gi;
}
--
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