diff --git a/common/python/nomadcore/simple_parser.py b/common/python/nomadcore/simple_parser.py index cad9851472f9f547a4b48541febe700cccafd743..bba15465022af09df3fd5d66ee3210bede0082fb 100644 --- a/common/python/nomadcore/simple_parser.py +++ b/common/python/nomadcore/simple_parser.py @@ -706,7 +706,7 @@ class CompiledMatcher(object): # overall span of match, and spans of group captures 'span': [], # capture group names - 'group': [], + 'matcherGroup': [], } if match: span = match.span() @@ -716,7 +716,7 @@ class CompiledMatcher(object): result['match'] = 1 # partial match if self.matcher.coverageIgnore: # matcher is local coverageIgnore result['coverageIgnore'] = 1 - result['group'] = self.groupname[targetStartEnd] + result['matcherGroup'] = self.groupname[targetStartEnd] # Forward compatibility with 'regex' or 're2', which support # multiple captures per group: # span: list of lists of tuples: [groups, captures, 2]