Created
October 9, 2022 09:07
-
-
Save leegilmorecode/853ae3c5e5a91e6c4b95537a4e0d029f to your computer and use it in GitHub Desktop.
order.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the order regexes can be used across our domain objects, | |
// events, api validation and more.. | |
export const orderRegexes = { | |
orderId: '^[A-Z]{3}-\\d{1,4}$', | |
addressLine: '^[a-zA-Z0-9 _.-]*$', | |
productId: '^[A-Z]{4}-\\d{1,4}$', | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment