technical-debt-radar 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14744,7 +14744,7 @@ var require_perf_pattern_detector = __commonJS({
|
|
|
14744
14744
|
if (ts_morph_1.Node.isPropertyAccessExpression(obj)) {
|
|
14745
14745
|
const propName = obj.getName();
|
|
14746
14746
|
const thisExpr = obj.getExpression();
|
|
14747
|
-
if (
|
|
14747
|
+
if (thisExpr.getKind() === ts_morph_1.SyntaxKind.ThisKeyword) {
|
|
14748
14748
|
const match = propName.match(/^(\w+?)(Model|Repository|Repo|Service|Collection)$/i);
|
|
14749
14749
|
if (match)
|
|
14750
14750
|
return match[1].charAt(0).toUpperCase() + match[1].slice(1);
|