question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QueryBuilder broken on web - Invalid regular expression: invalid group specifier name

See original GitHub issue

Issue 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:

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:closed
  • Created 3 years ago
  • Reactions:20
  • Comments:31 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
LuigiMaestrellicommented, Jan 20, 2021

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…

8reactions
timroescommented, Dec 11, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found