Skip to content

fix(parseLinks): Make the patterns compatible with hermes - #1069

Merged
vishalnarkhede merged 1 commit into
v4.0.0-beta.2from
regexp-hermes
Jan 6, 2022
Merged

vishalnarkhede merged 1 commit into
v4.0.0-beta.2from
regexp-hermes

Conversation

@madsroskar

@madsroskar madsroskar commented Jan 5, 2022 •

Copy link
Copy Markdown
Contributor

🎯 Goal

Hermes doesn't support named capture groups in regular expressions, which I didn't catch previously. I think e2e tests would be the most sensible way to catch this automatically, but I'll look a little into it later in the week to see if anything else makes sense. For now, I've tested the functionality with jest (so on V8), and manually tested on Android and iOS for see that it works with Hermes.

This fixes the issue of building the app currently on v4.0.0-beta.2

🎨 UI Changes

None

🧪 Testing

Described above

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Commits follow the conventional commits spec
  • [x/o] New code is covered by tests (half/half? :D See above)

@vishalnarkhede
vishalnarkhede merged commit 4902cbe into v4.0.0-beta.2 Jan 6, 2022
@vishalnarkhede
vishalnarkhede deleted the regexp-hermes branch January 6, 2022 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants