reaction
reaction copied to clipboard
Add match operator to support regular expression matching
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); }