-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix/93 #94
Fix/93 #94
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.
The desired fix isn't specifically to make single letter accounts invalid, but to add support for the "matches pattern" operator (like string
has, for example), so that users could create filters like that example case.
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.
Otherwise, LGTM.
@@ -50,6 +50,7 @@ module.exports = | |||
'does not include' | |||
'is included in' | |||
'is not included in' | |||
'matches pattern' |
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.
When we add an operator we usually want the negated operator, too. In this case that's 'does not match pattern'
.
spec/email-spec.coffee
Outdated
@@ -53,5 +53,4 @@ describe 'Email', -> | |||
assert.equal parsed.raw, 'USER@domain.com' | |||
|
|||
it 'should have examples', -> | |||
assert email.examples.length | |||
|
|||
assert email.examples.length |
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.
Please exclude files when there's nothing but a trivial formatting change like this.
#93
I also fixed a failing test.