Skip to content
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

Regex is incorrect (does not accurately parse GitHub usernames) #13

Closed
niftylettuce opened this issue Jun 20, 2018 · 3 comments
Closed
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 👶 semver/patch This is a backwards-compatible fix 🐛 type/bug This is a problem

Comments

@niftylettuce
Copy link

I get the following error with the following package.json "repository" field:

CHANGELOG.md
  1:1  error  Error: Missing `repository` field in `options`
    at Function.github (/Users/user/Projects/color-convert/node_modules/remark-github/lib/index.js:76:11)

Repository value: https://github.com/Qix-/color-convert

I believe the trailing - on the username is causing it to fail.

@wooorm
Copy link
Member

wooorm commented Jun 20, 2018

Weird!

screen shot 2018-06-20 at 19 44 57

I guess they changed that later? Do you know of any other guideline where GH themselves parse handles?

@niftylettuce
Copy link
Author

niftylettuce commented Jun 20, 2018 via email

@wooorm
Copy link
Member

wooorm commented Jun 20, 2018

https://github.com/shinnn/github-username-regex/issues/1

Feel free to submit a PR

@wooorm wooorm closed this as completed in b9e7e2d Aug 11, 2018
@wooorm wooorm added ⛵️ status/released 🐛 type/bug This is a problem 👶 semver/patch This is a backwards-compatible fix 🗄 area/interface This affects the public interface labels Aug 14, 2019
@wooorm wooorm added the 💪 phase/solved Post is done label Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 👶 semver/patch This is a backwards-compatible fix 🐛 type/bug This is a problem
Development

No branches or pull requests

2 participants