Compare commits

2 Commits

Author SHA1 Message Date
dimadenisjuk edcfe693b7 Merge branch 'main' into hap_ac2_fix 2026-05-18 01:37:55 +05:00
dimadenisjuk 2115c838dd Fixed hAP ac2 2026-05-17 23:35:52 +03:00
+1 -1
View File
@@ -17,7 +17,7 @@ const isHapAcLite = (b?: string | null): boolean =>
// hAP ac² (RBD52G-5HacD2HnD): отличаем по цифре «2» / «²» после «ac»,
// чтобы случайно не перехватить hAP ac lite.
const isHapAc2 = (b?: string | null): boolean =>
!!b && (/h\s*A\s*P\s*ac\s*[²2]/i.test(b) || /RBD52G/i.test(b));
!!b && (/h\s*A\s*P\s*ac[\s\^]*[²2]/i.test(b) || /RBD52G/i.test(b));
const isHapLike = (b?: string | null): boolean => !!b && /\bh\s*A\s*P\b/i.test(b);