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

Task advanced : the text for a negative number in "nth day of the month" is not right (#5482) #5608

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

quinarygio
Copy link
Contributor

Fix #5482

let card = Number(cardinal)
if (Number.isNaN(card)) {
getOrdinalMonthDaySuffix(cardinal: string) {
let cardinalNumber = Number(cardinal)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can use const instead of let.

"29": "e",
"30": "e",
"31": "e"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use :
"suffix": {
"1": "er",
"2": "ème",
"3": "ème",
"4": "ème",
"5": "ème",
"6": "ème",
"7": "ème",
"8": "ème",
"9": "ème",
"10": "ème",
"11": "ème",
"12": "ème",
"13": "ème",
"14": "ème",
"15": "ème",
"16": "ème",
"17": "ème",
"18": "ème",
"19": "ème",
"20": "ème",
"21": "ème",
"22": "ème",
"23": "ème",
"24": "ème",
"25": "ème",
"26": "ème",
"27": "ème",
"28": "ème",
"29": "ème",
"30": "ème",
"31": "ème"
}

…th" is not right (#5482)

Signed-off-by: Giovanni Ferrari <giovanni.ferrari@soft.it>
Copy link

sonarcloud bot commented Dec 22, 2023

Quality Gate Failed Quality Gate failed

Failed conditions

25.0% Coverage on New Code (required ≥ 50%)

See analysis details on SonarCloud

@vlo-rte vlo-rte merged commit 12ab597 into develop Dec 26, 2023
7 of 8 checks passed
@vlo-rte vlo-rte deleted the FE-5482 branch December 26, 2023 12:35
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.

Task advanced : the text for a negative number in "nth day of the month" is not right
2 participants