diff --git a/common/python/nomadcore/simple_parser.py b/common/python/nomadcore/simple_parser.py index e2271fe307648def046a0a599b52cc915894ba22..3d77c673a54913e7661e9842b476cdf09fa0a901 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]