-
Notifications
You must be signed in to change notification settings - Fork 56
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: extend list of reserved domains in signup #3152
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 once lint/tests pass
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 list of words looks great! @pdevine had originally requested a minimum of 3, but personally I think it should be at least 4 or 5. This PR changes it to 6. I'm fine with that, it's easier to relax this later than to make it more strict.
What's the reason for storing this as yaml? Do you think we could store it as a go literal to remove the need for decoding?
Or even a simple "word per line" that would let us parse it with https://pkg.go.dev/bufio#NewScanner ? I guess word per line would not allow for comments unless we also cut off any #...
suffix.
ab6eebc
to
b482a0b
Compare
Yaml was just easy and the source list was already yaml. Alternatives are okay. We already use the yaml parsing library so it's no new dependencies. The comments are nice |
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.
Maybe worth double checking with others about the min length change, but LGTM
Summary
Checklist