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

fix: support usernames with multiple dashes #463

Merged

Conversation

brandonroberts
Copy link
Contributor

What:

Fixes a bug where a username with multiple dashes is not formatted correctly and the username is not found

Why:

analogjs/analog#362 (comment)

image

How:

Replaces all occurrences of a dash in the username. Removes all occurrences of the replacement characters

Checklist:

  • Documentation
  • Ready to be merged
  • Added myself to contributors table.
    Bot Usage

@brandonroberts brandonroberts requested a review from a team as a code owner May 1, 2023 02:49
@vercel
Copy link

vercel bot commented May 1, 2023

@brandonroberts is attempting to deploy a commit to the All Contributors Team on Vercel.

A member of the Team first needs to authorize it.

@gr2m gr2m self-assigned this May 9, 2023
@gr2m gr2m force-pushed the fix-parse-comment-multiple-dashes branch 2 times, most recently from 8a84507 to bcf93a9 Compare May 9, 2023 01:55
@codecov
Copy link

codecov bot commented May 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (c733295) 100.00% compared to head (a06f6e0) 100.00%.

❗ Current head a06f6e0 differs from pull request most recent head 3926497. Consider uploading reports for the commit 3926497 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #463   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines          451       451           
  Branches        53        53           
=========================================
  Hits           451       451           
Impacted Files Coverage Δ
lib/parse-comment.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gr2m gr2m force-pushed the fix-parse-comment-multiple-dashes branch from 9ec1b4b to 1f12645 Compare May 9, 2023 01:59
@vercel
Copy link

vercel bot commented May 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 6:54pm

"rishi-raj-jain": ['doc'],
},
})
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is not failing. Looks like the existing code is working, even without your change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is a test, seems like the username is parsed okay?

gr2m/sandbox#252 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that's where I traced it down to parsing the username. It shows a valid username not being parsed here analogjs/analog#362 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm okay I'll do some more testing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay I was able to reproduce the problem: gr2m/sandbox#252 (comment).

As I said the test is not failing the implementation of your fix though. Could you please have a look? I'll meanwhile deploy your changes to staging and test that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed your change is working: gr2m/sandbox#252 (comment). So all it's left is to make your test fail before the fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thanks

@gr2m gr2m changed the title fix: fix support for usernames with multiple dashes fix: support usernames with multiple dashes Mar 13, 2024
@gr2m gr2m merged commit 5c1f338 into all-contributors:master Mar 13, 2024
2 checks passed
@gr2m
Copy link
Contributor

gr2m commented Mar 13, 2024

@all-contributors add @brandonroberts for code and test

Copy link
Contributor

@gr2m

I've put up a pull request to add @brandonroberts! 🎉

Copy link

🎉 This PR is included in version 1.19.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants