Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Question about the RegExp type and how it's used. #59

Open
mypark opened this issue May 2, 2017 · 0 comments
Open

Question about the RegExp type and how it's used. #59

mypark opened this issue May 2, 2017 · 0 comments

Comments

@mypark
Copy link

mypark commented May 2, 2017

I'm a bit confused about the RegExp type shown in the readme. Normally you would want to test a field against a RegExp pattern, e.g. check for a valid email, rather than check that a field is a RegExp pattern (as shown in the example). Would you have to create a refinement for the former use case of checking a field against a pattern? Why would you want a RegExp type in tcomb otherwise? What would it be used for?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant