QueryBuilder broken on web - Invalid regular expression: invalid group specifier name
See original GitHub issueIssue Description
The QueryBuilder is broken in the new 0.2.29 release due to this change: https://github.com/typeorm/typeorm/pull/4760 Regex lookbehinds are not supported in on a lot of web environments, a fallback should be implemented. This affects any driver that uses JavascriptCore (Safari, React Native, …)
Expected Behavior
I’d expect QueryBuilder to work
Actual Behavior
QueryBuilder crashes with Invalid regular expression: invalid group specifier name
Steps to Reproduce
I would add an reproducible example, however, I feel the issue is clear enough without?
My Environment
Dependency | Version |
---|---|
Operating System | React Native, Android |
Typescript version | v4.0.5 |
TypeORM version | v0.2.29 |
Additional Context
Relevant:
- https://bugs.webkit.org/show_bug.cgi?id=174931
- https://stackoverflow.com/questions/641407/javascript-negative-lookbehind-equivalent
Relevant Database Driver(s)
-
aurora-data-api
-
aurora-data-api-pg
-
better-sqlite3
-
cockroachdb
-
cordova
-
expo
-
mongodb
-
mysql
-
nativescript
-
oracle
-
postgres
-
react-native
-
sap
-
sqlite
-
sqlite-abstract
-
sqljs
-
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
- Yes, I have the time, and I know how to start.
- Yes, I have the time, but I don’t know how to start. I would need guidance.
- No, I don’t have the time, although I believe I could do it if I had the time…
- No, I don’t have the time and I wouldn’t even know how to start.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:20
- Comments:31 (6 by maintainers)
Top Results From Across the Web
Works in Chrome, but breaks in Safari: Invalid regular ...
I had the same issue, and it turned out to be a RegEx expression in one of my dependencies, namely Discord.js .
Read more >Angular SyntaxError - Apple Developer
Angular SyntaxError: SyntaxError: Invalid regular expression: invalid group specifier name. You're now watching this thread and will receive emails when ...
Read more >Invalid group specifier name no stack? : r/reactnative - Reddit
How can I fix this error?Invalid regular expression: Invalid group specifier name no stack. I run the application without error on terminal ...
Read more >Regex works in chrome, but breaks in safari: invalid regular ...
[Solved] Regex works in chrome, but breaks in safari: invalid regular expression: invalid group specifier name - CodeProject.
Read more >Automate Desktop and Automate Plus/Ultimate - Fortra
The Text (Replace) activity now honors regex expressions in the "Replace with" ... The PDF (Set field) activity no longer sets the wrong...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
Any ideas on when this will be released? Every single release from 0.2.25 to 0.2.30 has some kind of bug on react-native…
This issue was released now since a month and effects most Android/iOS and all Safari usages. It feels this should be critical enough to revert the causing PR and release a 0.2.30 timely?