grepid: don't match too much when scanning grep results
This commit is contained in:
1 parent
65b360bcda
commit
0628ba012b
1 file changed
+1
-1
@@ -68,7 +68,7 @@ def main(argv):
|
|||||||
lines = []
|
lines = []
|
||||||
for line in iter(process.stdout.readline, ''):
|
for line in iter(process.stdout.readline, ''):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
m = re.match('(.*):(\d+):(.*)$', line)
|
m = re.match('(.*?):(\d+):(.*)$', line)
|
||||||
if m is None:
|
if m is None:
|
||||||
last_file_name = ''
|
last_file_name = ''
|
||||||
sys.stdout.write(m)
|
sys.stdout.write(m)
|
||||||
|
|||||||
Reference in new issue
Block a user