lib/knj/cmd_parser.rb in knjrbfw-0.0.66 vs lib/knj/cmd_parser.rb in knjrbfw-0.0.67
- old
+ new
@@ -6,10 +6,10 @@
# Knj::Cmd_parser.lsl(str) #=> <Array> holding a lot of info about the various listed files.
def self.lsl(str, args = {})
ret = []
str.lines.each do |line|
- next if line.match(/^total ([\d\.,]+)(M|k|G|)$/)
+ next if line.match(/^total([A-z]*)\s+([\d\.,]+)(M|k|G|)$/)
match = line.match(/^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)\s+(\d+)\s+(.+)\s+([^\W].+?)\s+([\d\.,]+)(M|k|G|K|)\s+((\d+)-(\d+)-(\d+)|(([A-z]{3})\s+(\d+)))\s+((\d+):(\d+)|(\d{4}))\s+(.+)$/)
raise "Could not match: '#{line}'." if !match
year = nil
\ No newline at end of file