fix: remove 's' after apostrophe if name ends with 's'

This commit is contained in:
Sreetam Das
2020-07-16 04:57:47 +05:30
parent 817f736b4e
commit 5aa24f1b8d
+3 -1
View File
@@ -149,7 +149,9 @@ const renderStatsCard = (stats = {}, options = { hide: [] }) => {
${rankCircle}
<text x="25" y="35" class="header">${name}'s GitHub Stats</text>
<text x="25" y="35" class="header">${name}'${
name.slice(-1) === "s" ? "" : "s"
} GitHub Stats</text>
<svg x="0" y="45">
${statItems.toString().replace(/\,/gm, "")}