From 445587859d8387a555e500818a5c79860d7d36fb Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Thu, 12 Nov 2026 15:07:38 +0800 Subject: [PATCH] docs: browser support - RegExp lookbehind requires Safari 16.4+ Contextual (before/after/not_before/not_after) rules compile to lookaround assertions. Older Safari builds fail at match time rather than mis-transliterating. Closes the actionable half of the Safari lookbehind issue with the support matrix documented. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index bb4e781..f931c76 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,14 @@ npm run gen:parity - **Parity:** byte-exact comparison with Ruby interpreter across 5 sample maps - **Bench:** trie reuse, parallel replace, end-to-end transliteration +## Browser support + +Contextual rules compile to lookbehind/lookahead assertions, so the +runtime requires a browser engine with RegExp lookbehind: Safari 16.4+, +Chrome 62+, Firefox 78+, Edge 79+ (and any bundler target that does not +transpile `RegExp` semantics away). Older Safari builds fail at match +time rather than mis-transliterating. + ## License BSD-2-Clause — Ribose Inc.