You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
1 commit comments
vercel[bot] commentedon Aug 1, 2023
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