mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
renamed "isNamedCapture" to "is_named_capture"
This commit is contained in:
@@ -184,7 +184,7 @@ public class RegExpExtractor {
|
||||
public void visit(Group nd) {
|
||||
Label lbl = extractTerm(nd, parent, idx);
|
||||
if (nd.isCapture()) trapwriter.addTuple("is_capture", lbl, nd.getNumber());
|
||||
if (nd.isNamed()) trapwriter.addTuple("isNamedCapture", lbl, nd.getName());
|
||||
if (nd.isNamed()) trapwriter.addTuple("is_named_capture", lbl, nd.getName());
|
||||
visit(nd.getOperand(), lbl, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ regexpterm(#20047,13,#20043,1,"(?<ws>\s+)")
|
||||
locations_default(#20048,#10000,1,3,1,12)
|
||||
hasLocation(#20047,#20048)
|
||||
is_capture(#20047,1)
|
||||
isNamedCapture(#20047,"ws")
|
||||
is_named_capture(#20047,"ws")
|
||||
#20049=*
|
||||
regexpterm(#20049,9,#20047,0,"\s+")
|
||||
#20050=@"loc,{#10000},1,9,1,11"
|
||||
|
||||
Reference in New Issue
Block a user