Update go/ql/lib/semmle/go/frameworks/Twirp.qll

Co-authored-by: Michael B. Gale <mbg@github.com>
This commit is contained in:
Owen Mansel-Chan
2023-02-08 15:33:35 +00:00
committed by GitHub
parent 764155ce97
commit 18335854b6

View File

@@ -80,7 +80,7 @@ module Twirp {
exists(ServiceInterfaceType i, PointerType p, TypeEntity te |
p.implements(i) and
this = p.getBaseType() and
this.getName().regexpMatch("(?i)" + i.getName() + "(protobuf|json)" + "client") and
this.getName().regexpMatch("(?i)" + i.getName() + "(protobuf|json)client") and
te.getType() = this and
te.getDeclaration().getLocation().getFile() instanceof ServicesGeneratedFile
)