Shane Sewellanddermotduffy 54e261fd54 fix: Restore iPadOS 15 compatibility by removing unsupported regex (#2756)
## Summary

Removes an unsupported negative regex lookbehind from input-helper
entity ID validation.

Advanced Camera Card v8 fails to load on Safari/iPadOS 15 because the
browser cannot parse `(?<!_)`. This prevents the `advanced-camera-card`
custom element from registering.

The replacement preserves the existing validation behavior without
lookbehind:

- Accepts valid `input_*` helper entity IDs.
- Rejects object IDs beginning or ending with `_`.
- Rejects object IDs containing `__`.
- Restores compatibility with Safari versions before 16.4.

This closes #2753 

## Testing

- Added regression coverage for valid and invalid input-helper entity
IDs.
- TypeScript typecheck passes.
- ESLint passes for the changed files.
- Build succeeds.
- Confirmed the generated distribution contains no negative lookbehind
syntax.
- Direct validation of the replacement regex passes.

## Reproduction

- Device: iPad mini 4
- OS: iPadOS 15.8.8
- Last working release: v7.27.4
- Affected releases: v8.0.0 and v8.0.1
- Browser error:

```text
SyntaxError: Invalid regular expression: invalid group specifier name
Safari and Safari on iOS did not support regex lookbehind until version 16.4.

---------

Co-authored-by: dermotduffy <dermot.duffy@gmail.com>
2026-09-01 16:53:34 -07:00
2026-02-21 20:39:15 -08:00
2026-02-21 20:39:15 -08:00
2026-02-21 20:39:15 -08:00
2026-02-21 20:39:15 -08:00
2021-08-22 16:44:48 -07:00
2024-03-27 20:55:56 -07:00

GitHub Release CI Status License HACS Sponsor

Advanced Camera Card

Advanced Camera Card

Formerly known as: Frigate Card

A comprehensive camera card for Home Assistant.

  • Live viewing of multiple cameras.
  • Clips, snapshot and review browsing via mini-gallery.
  • Automatic updating to continually show latest clip / snapshot.
  • Support for filtering events by zone and label.
  • Arbitrary entity access via menu (e.g. motion sensor access).
  • Fullscreen mode.
  • Grid or carousel/swipeable media, thumbnails and cameras.
  • Direct media downloads.
  • Lovelace visual editing.
  • Full Picture Elements support.
  • Theme friendly.

See full documentation.

S
Description
Fork of dermotduffy/advanced-camera-card - adds cameras[].media.severities so the thumbnail bar, gallery and timeline can be pinned to Frigate alerts.
Readme MIT
126 MiB
Languages
TypeScript 97.1%
SCSS 2.2%
JavaScript 0.6%