Skip to content

fix 11a and 12a in gig list#404

Open
Grohiik wants to merge 1 commit intomainfrom
Grohiik-patch-3
Open

fix 11a and 12a in gig list#404
Grohiik wants to merge 1 commit intomainfrom
Grohiik-patch-3

Conversation

@Grohiik
Copy link
Collaborator

@Grohiik Grohiik commented Jan 16, 2026

No description provided.

Comment on lines +27 to +28
const secondDigit = (((n % 100) - lastDigit) / 10);
return (lastDigit === 1 || lastDigit === 2) and secondDigit !== 1 ? 'a' : 'e';
Copy link
Owner

Choose a reason for hiding this comment

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

Good change, but I would prefer if we checked something like

const hasSuffixE = [1, 2, 11, 12]
const lastTwoDigits = n % 100;
return hasSuffixE.includes(lastTwoDigits);

as it would be a little more clearer what the intent is.

@@ -24,7 +24,8 @@ const fetchGigs = async (year: number, tab: string) => {

const numberSuffix = (n: number) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Could we add support for English number suffixes (i.e. 1st, 2nd, 3rd and so on)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants