fix: extend list of reserved domains in signup#3152
Conversation
BruceMacD
left a comment
There was a problem hiding this comment.
looks good once lint/tests pass
There was a problem hiding this comment.
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 |
dnephin
left a comment
There was a problem hiding this comment.
Maybe worth double checking with others about the min length change, but LGTM
Summary
Checklist