Safari iOS < 16.4 Error Regex Lookbehind

Created on 8 May 2023, over 1 year ago

Hello
the npm package has a Regex which uses "Lookbehind" in one of its patterns.
const regExp = /(?<=^|;)\s*([^:]+)\s*:\s*([^;]+)\s*/g;
Safari on iOS doesn't support Regex Lookbehind previous to 16.4 (which was just recently released). https://caniuse.com/js-regexp-lookbehind
This leads to an error when used on an older iOS Version.
It would be good to replace the lookbehind in the pattern to increase the browser compatibilty.

🐛 Bug report
Status

Active

Component

Code

Created by

🇨🇭Switzerland yannickbaettig

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024