Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative lookbehind not supported in iOS16.3 and lower #2057

Open
jeroenkampinga opened this issue Mar 21, 2025 · 0 comments
Open

Negative lookbehind not supported in iOS16.3 and lower #2057

jeroenkampinga opened this issue Mar 21, 2025 · 0 comments
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work 🐞 bug

Comments

@jeroenkampinga
Copy link

jeroenkampinga commented Mar 21, 2025

Describe the Bug

Since JSS version 22.4.0, a "negative lookbehind" has been introduced in https://github.com/Sitecore/jss/blob/0fbd0c63926e69ce72d3579c9822778b3a69f49e/packages/sitecore-jss/src/utils/utils.ts#L205C3-L207C51 that is not supported in iOS 16.3 and lower. This causes a JavaScript error in the website's front-end:

Image

Can this "negative lookbehind" be rewritten to work in older ECMAScript versions?

To Reproduce

  • Install JSS 22.4.0 or higher
  • Run the website and open it on a iOS device with 16.3 or lower.

Expected Behavior

I should not get a JavaScript error on any browser on iOS 16.3 or lower.

Possible Fix

No response

Provide environment information

  • JSS Version: 22.4.0 and higher
  • Operating System and version (desktop or mobile): iOS 16.3
  • Browser version: All browser on iOS 16.3 or lower
@illiakovalenko illiakovalenko added the backlog Issue/PR/discussion is reviewed and added to backlog for the further work label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work 🐞 bug
Projects
None yet
Development

No branches or pull requests

2 participants