Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hi there! We're developing an open-source app (https://github.com/dumpus-app/dumpus-app) and use satori to render some images client-side. However, we encountered the following error on both ios web (safari) and capacitor (that uses safari webview) on a lot of iOS devices: ```bash Invalid regular expression: invalid group specifier name ``` After investigating, we found out it's caused by [regex lookbehind](https://stackoverflow.com/questions/51568821/works-in-chrome-but-breaks-in-safari-invalid-regular-expression-invalid-group) not being [supported until iOS 16.4](https://caniuse.com/js-regexp-lookbehind). This PR replaces this regex by some quite hacky code because we needed a hotfix. If anybody wants to update the regex in order not to use `lookbehind` feature, feel free to do so!. If you want to test it, you can use satori on the web using the following package json version: ```json "satori": "dumpus-app/satori#fix-safari-compatibility-build" ``` Thanks for your time! Co-authored-by: Androz2091 <androz2091@gmail.com>
- Loading branch information
efbb5ec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
satori-playground – ./
og-playground.vercel.sh
og-playground.vercel.app
satori-playground.vercel.sh
satori-playground-git-main.vercel.sh
satori-playground.vercel.app