From 2115c838dddae7af253217ec77892f97b5ff1a49 Mon Sep 17 00:00:00 2001 From: dimadenisjuk Date: Sun, 17 May 2026 23:35:52 +0300 Subject: [PATCH] Fixed hAP ac2 --- frontend/src/components/DeviceMockup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/DeviceMockup.tsx b/frontend/src/components/DeviceMockup.tsx index 6b51554..7b85b3b 100644 --- a/frontend/src/components/DeviceMockup.tsx +++ b/frontend/src/components/DeviceMockup.tsx @@ -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); -- 2.52.0