@diegovelasquezweb/a11y-engine 0.10.0 → 0.10.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/package.json
CHANGED
|
@@ -547,6 +547,7 @@ export function classifyFindingOwnership({
|
|
|
547
547
|
* @returns {boolean}
|
|
548
548
|
*/
|
|
549
549
|
function isFalsePositive(finding) {
|
|
550
|
+
if (finding.needs_verification) return false;
|
|
550
551
|
const htmls = finding.evidence.map((e) => e.html || "").join(" ");
|
|
551
552
|
if (finding.rule_id === "color-contrast") {
|
|
552
553
|
if (/background(?:-image)?\s*:\s*(?:linear|radial|conic)-gradient/i.test(htmls)) return true;
|