Jon
January 23, 2024, 3:15pm
2
Hey @Snyaify1 ,
Thanks for reporting this one, I have popped in a PR which can be found below to fix this one. For now another workaround would be to just use #([Ii]nvoi[c])
for your matching pattern which should work.
n8n-io:master
← n8n-io:fix-switch-regex
opened 03:08PM - 23 Jan 24 UTC
## Summary
This PR adds the regex parsing that we did in earlier switch nodes t… o allow regex patterns like `/^fo{2}$/g` to work again.
## Related tickets and issues
https://community.n8n.io/t/regex-match-doesnt-work-1-25/35723
## Review / Merge checklist
- [x] PR title and summary are descriptive. **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** ([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [x] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it from happening again.
> A feature is not complete without tests.
1 Like