Skip to content

Commit 29e0862

Browse files
committed
Fix minor bug in the regex
1 parent 94b0b8a commit 29e0862

File tree

1 file changed

+3
-2
lines changed
  • javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5

1 file changed

+3
-2
lines changed

javascript/frameworks/ui5/lib/advanced_security/javascript/frameworks/ui5/UI5.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ class CustomController extends SapExtendCall {
469469
}
470470

471471
Component getOwnerComponent() {
472-
exists(ManifestJson manifestJson, JsonObject rootObj | manifestJson = result.getManifestJson() |
472+
exists(ManifestJson manifestJson, JsonObject rootObj |
473+
manifestJson = result.getManifestJson() and
473474
rootObj
474475
.getPropValue("targets")
475476
.(JsonObject)
@@ -774,7 +775,7 @@ class Component extends SapExtendCall {
774775
]).getAMemberCall("extend")
775776
}
776777

777-
string getId() { result = this.getName().regexpCapture("([a-zA-Z0-9.]+).Component", 1) }
778+
string getId() { result = this.getName().regexpCapture("(.+).Component", 1) }
778779

779780
ManifestJson getManifestJson() {
780781
this.getMetadata().getAPropertySource("manifest").asExpr().(StringLiteral).getValue() = "json" and

0 commit comments

Comments
 (0)