@diegovelasquezweb/a11y-engine 0.11.38 → 0.11.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diegovelasquezweb/a11y-engine",
3
- "version": "0.11.38",
3
+ "version": "0.11.39",
4
4
  "description": "WCAG 2.2 accessibility audit engine — scanner, analyzer, and report builders",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -201,6 +201,10 @@ export function scanPattern(pattern, scanDir, projectDir = scanDir) {
201
201
  regex.lastIndex = 0;
202
202
  if (!regex.test(lines[i])) continue;
203
203
 
204
+ // Skip matches inside comments — they are not real code issues
205
+ const trimmed = lines[i].trim();
206
+ if (trimmed.startsWith("<!--") || trimmed.startsWith("{/*") || trimmed.startsWith("//")) continue;
207
+
204
208
  const contextStart = Math.max(0, i - 3);
205
209
  const contextEnd = Math.min(lines.length - 1, i + 3);
206
210
  const context = lines