-
Notifications
You must be signed in to change notification settings - Fork 2
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
multiple reviewers should be space separation. #35
Comments
I'd still keep the comma to be coherent with the |
Should be relatively easy Believe you can do const reviewersToBeParsed = reviewerMatches[1].split("[, ]"); |
I'd suggest writing some tests 😉 |
It's next on my plan 😄 and yes makes sense to allow spaces here and I agree with @lemeurherve that comma should be kept for consistency with labels which can't have a space separator |
The tests failed with this, I just did: const separator = reviewers.includes(",") ? "," : " ";
const split = reviewers.split(separator); |
The correct syntax is const split = reviewers.split(/[,\s]/); |
sure not sure if I really want to support both at the same time anyway, so my approach should be fine? |
Why not regex can handle splitting correctly for both? 😅 |
yeah sure have merged |
github-comment-ops/index.js
Line 121 in 26bc7b9
@timja this should potentially handle spaces instead of comma separation.
One they cannot have spaces in their username.
Two by default the auto complete fills in a space when hitting enter for completion.
@timja @jetersen @etc
The text was updated successfully, but these errors were encountered: