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

bug: Safari ios<16.3 version did not support regexpins like Lookbehind assertion #30219

Open
3 tasks done
angdepver opened this issue Feb 27, 2025 · 1 comment
Open
3 tasks done
Labels

Comments

@angdepver
Copy link

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

After upgrading the ionic to 8 I am getting a runtime error on iOS 16.2 with Safari related to Regexp that uses Lookbehind assertion.

As the title explains itself the Lookbehind assertion is not supported on iOS 16.2 and older versions. My application is currently stuck on the initialisation.

The error:
SyntaxError: Invalid regular expression: invalid group specifier name
coming from @stencil/core/internal/client/index.js
var createSupportsRuleRe = selector => new RegExp(((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b), "gim");

Project details:
Angular 18.2.13
Ionic: "@ionic/angular": "^8.4.3"

Expected Behavior

The application will be able to run on iOS < 16.3

Steps to Reproduce

Install the Angular 18.2.13 with Ionic 8.4.3 and run on iOS 16.2 with Safari.

Code Reproduction URL

https://dashboard.ionicframework.com/create-app/b2ff3c52

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.4.3
@angular-devkit/build-angular : 18.2.14
@angular-devkit/schematics : 18.2.14
@angular/cli : 18.2.14
@ionic/angular-toolkit : 12.1.1

Capacitor:

Capacitor CLI : 6.2.0
@capacitor/android : not installed
@capacitor/core : 6.2.0
@capacitor/ios : not installed

Cordova:

Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : not available

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v23.7.0 (/usr/local/Cellar/node/23.7.0/bin/node)
npm : 10.5.0
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Feb 27, 2025
@JumBay
Copy link

JumBay commented Mar 10, 2025

Same issue here, my users with an old iOS version encounter this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants