-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just some minor questions and comments. 🚀
@@ -5,3 +5,5 @@ export const ERROR_CODE = 400; | |||
export const SUCCESS_CODE = 200; | |||
|
|||
export const parseStringToRegExp = (string) => string.replaceAll('?', '\\?'); | |||
|
|||
export const EMAIL_FORMAT = '[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this tested? Source? I always worry about these regexes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can suppose that André has his own schemas and regexes already. Ideally I would like to use those, but for now I need simple checks for tests. And yes note that it is only used in tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahgentil, do you have schemas to share?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge this PR and create an issue to include schemas in the project.
@hagoptaminian @ahgentil @juancarlosfarah @hasanagh
close #16