diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-01 19:10:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-07-01 19:10:47 -0400 |
commit | bc0107813be28ab9532f136047d23bbaa158ee8b (patch) | |
tree | a58775772295b25d4955124be85159926cf3c88a /bin/fmt-metadata | |
parent | 55f9bd8d5226eb49f5899c5ddca89c655ef96e9b (diff) |
fixo
Diffstat (limited to 'bin/fmt-metadata')
-rwxr-xr-x | bin/fmt-metadata | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/fmt-metadata b/bin/fmt-metadata index 0682414..7867d63 100755 --- a/bin/fmt-metadata +++ b/bin/fmt-metadata @@ -4,15 +4,13 @@ require 'time' snapshot = ARGV.first.to_i $stdin.each_line do |line| - m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.]+)(\S+) *$/.match(line) + m = /^ (\S+) +(..-\S+-.... ..:..) +([0-9.-]+)(\S+) *$/.match(line) raise "Malformed line: #{line}" unless m name = m[1] datetime = m[2] size_numb = m[3] size_unit = m[4] - next if name.downcase == "parent directory" - # The Unicode.org web server switched the timezone of timestamps # in May 2004 if snapshot < 20040500000000 |