From 7ab2310d001bd770f9b6ed9bb5b393f9bb45aea7 Mon Sep 17 00:00:00 2001 From: ultrayay Date: Sat, 25 Jul 2020 10:43:37 +0800 Subject: [PATCH] fix issue #I1OZJ7 --- test/maple_test/compare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/maple_test/compare.py b/test/maple_test/compare.py index c7e8db0160..3dfbe37350 100644 --- a/test/maple_test/compare.py +++ b/test/maple_test/compare.py @@ -179,7 +179,7 @@ def regex_match(content, line_map, pattern, start=0): matches = re.finditer(str(pattern), content, re.MULTILINE) end = 0 for _, match in enumerate(matches, start=1): - end = match.end() + end = match.end() + start line_num = text_index_to_line_num(line_map, end) if line_num + 1 >= len(line_map): return True, end -- Gitee