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

Add match operator to support regular expression matching #6512

Closed
alex-haproff opened this issue Mar 16, 2020 · 1 comment
Closed

Add match operator to support regular expression matching #6512

alex-haproff opened this issue Mar 16, 2020 · 1 comment

Comments

@alex-haproff
Copy link
Contributor

Current set of operators is pretty basic and we already have a couple of production use-cases where regular expression matching for Surcharge and Fulfillment restrictions is vital.

https://github.com/reactioncommerce/api-utils/blob/trunk/lib/operators.js

Add match operator akin to this:

match(varA, varB) { return RegExp(varB, "ig").test(varA); }
@brent-hoover
Copy link
Collaborator

This was done already

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

No branches or pull requests

2 participants