mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
fix issue #60 that was skipping the first file in some instances using -R without -l
This commit is contained in:
@ -235,7 +235,8 @@ def parse(data, raw=False, quiet=False):
|
|||||||
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', linedata[0]) \
|
if not re.match(r'[-dclpsbDCMnP?]([-r][-w][-xsS]){2}([-r][-w][-xtT])[+]?', linedata[0]) \
|
||||||
and linedata[0].endswith(':'):
|
and linedata[0].endswith(':'):
|
||||||
parent = linedata.pop(0)[:-1]
|
parent = linedata.pop(0)[:-1]
|
||||||
# Pop following total line
|
# Pop following total line if it exists
|
||||||
|
if re.match(r'total [0-9]+', linedata[0]):
|
||||||
linedata.pop(0)
|
linedata.pop(0)
|
||||||
|
|
||||||
if linedata:
|
if linedata:
|
||||||
|
Reference in New Issue
Block a user