Skip to content

Commit fc5bcfb

Browse files
committed
Simplify the matching of locations
1 parent 2733523 commit fc5bcfb

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CDL.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ class CdlService extends CdlElement {
165165
CdlService() { kind = CdlServiceKind(this.getPropStringValue("kind")) }
166166

167167
UserDefinedApplicationService getImplementation() {
168-
// This file base name will be .cds.json, so the stem will be .cds
169-
this.getFile().getStem() = result.getFile().getStem() + ".cds" and
170-
this.getFile().getParentContainer() = result.getFile().getParentContainer()
168+
result.getFile().getRelativePath().regexpReplaceAll("\\.[^.]+$", ".cds.json") =
169+
this.getFile().getRelativePath()
171170
}
172171

173172
/**

0 commit comments

Comments
 (0)