Skip to content

Conversation

malgokiel
Copy link
Contributor

closes #4232

This fixes the apostrophe placement in names ending with "x" so it matches the grammar rules.

Test case was also updated.

Copy link

vercel bot commented Jul 23, 2025

@malgokiel is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the stats-card Feature, Enhancement, Fixes related to stats the stats card. label Jul 23, 2025
@qwerty541 qwerty541 requested a review from Copilot September 10, 2025 15:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes apostrophe placement in GitHub stats card names ending with "x" to follow proper English grammar rules. Previously, names ending in "x" incorrectly had no apostrophe-s added, but according to English grammar rules, only names ending in "s" should omit the additional "s".

  • Updated apostrophe logic to only check for names ending in "s" instead of both "s" and "x"
  • Modified test case expectation for "Felix" to show "Felix's" instead of "Felix'"

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/cards/stats.js Updated apostrophe logic to use regex checking only for "s" endings
tests/renderStatsCard.test.js Updated test expectation for "Felix" to include apostrophe-s

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@qwerty541 qwerty541 merged commit ea6ef11 into anuraghazra:master Sep 10, 2025
6 of 7 checks passed
@qwerty541
Copy link
Collaborator

Hello @malgokiel

Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stats-card Feature, Enhancement, Fixes related to stats the stats card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Card titles do not have the correct possessive form for names ending in "x"
2 participants