diff --git a/src/detect-antipatterns-browser.js b/src/detect-antipatterns-browser.js index ab487bee2..7e42132af 100644 --- a/src/detect-antipatterns-browser.js +++ b/src/detect-antipatterns-browser.js @@ -1607,7 +1607,7 @@ if (IS_BROWSER) { const TYPE_LABELS = {}; const RULE_CATEGORY = {}; for (const ap of ANTIPATTERNS) { - TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26); + TYPE_LABELS[ap.id] = ap.name.toLowerCase(); RULE_CATEGORY[ap.id] = ap.category || 'quality'; } diff --git a/src/detect-antipatterns.mjs b/src/detect-antipatterns.mjs index 94632eed0..103752d83 100644 --- a/src/detect-antipatterns.mjs +++ b/src/detect-antipatterns.mjs @@ -1602,7 +1602,7 @@ if (IS_BROWSER) { const TYPE_LABELS = {}; const RULE_CATEGORY = {}; for (const ap of ANTIPATTERNS) { - TYPE_LABELS[ap.id] = ap.name.toLowerCase().substring(0, 26); + TYPE_LABELS[ap.id] = ap.name.toLowerCase(); RULE_CATEGORY[ap.id] = ap.category || 'quality'; }