mirror of
https://github.com/pi-hole/web.git
synced 2026-05-24 01:28:44 +01:00
1c621a53f8
WebKit-based browsers (Safari, DuckDuckGo on macOS) don't yet support the ES2024 Unicode Sets `v` regex flag, causing a SyntaxError that prevents all dashboard JavaScript from executing — stats show `---` and charts spin indefinitely. None of the affected patterns use v-exclusive features (set notation `[A--B]`, `[A&&B]`), so downgrading to `u` is fully equivalent and restores broad compatibility without any functional change. Also updates xo.config.js to enforce `requireFlag: "u"` so the linter stays consistent with the codebase. Affected files (16 occurrences across 8 files): - scripts/js/utils.js - scripts/js/index.js - scripts/js/footer.js - scripts/js/groups-domains.js - scripts/js/settings-teleporter.js - scripts/js/gravity.js - scripts/js/groups.js - scripts/js/groups-clients.js - scripts/js/groups-lists.js - scripts/js/settings-dns-records.js - scripts/js/network.js - scripts/js/taillog.js Signed-off-by: Austin Gilmour <gilmoursa@gmail.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>