projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd71f5b
)
mktables: Tighten regex match to real data
author
Karl Williamson
<public@khwilliamson.com>
Sun, 20 Oct 2013 16:13:39 +0000
(10:13 -0600)
committer
Karl Williamson
<public@khwilliamson.com>
Tue, 31 Dec 2013 15:27:15 +0000
(08:27 -0700)
The actual file has spaces, so use \s instead of the more dangerous dot.
Also, after processing the line, no need to look to see if it matches
something else.
lib/unicore/mktables
patch
|
blob
|
history
diff --git
a/lib/unicore/mktables
b/lib/unicore/mktables
index
b806721
..
959bfa6
100644
(file)
--- a/
lib/unicore/mktables
+++ b/
lib/unicore/mktables
@@
-17832,8
+17832,9
@@
else {
for my $list ( \@input, \@mktables_list_output_files ) {
while (<$file_handle>) {
s/^ \s+ | \s+ $//xg;
- if (/^ \s* \#
.
* Autogenerated\ starting\ on\ (\d+)/x) {
+ if (/^ \s* \#
\s
* Autogenerated\ starting\ on\ (\d+)/x) {
$old_start_time = $1;
+ next;
}
next if /^ \s* (?: \# .* )? $/x;
last if /^ =+ $/x;