Skip to content

code cleanup: remove commented out function #246

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions frontend/app/utils/string-utils.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/**
* Strips formatting from a string representing a formatted decimal
* @param input string represenation of a formatted decimal (examples: en:"1,234.56", fr:"1 234,56")
* @param lang Format language (en or fr)
* @returns string representation of the decimal without formatting (examples: "1234.56")
*
export function removeNumericFormatting(input: string, lang: Language): string {
switch (lang) {
case 'en': {
const output = input.replaceAll(',', '');
return output;
}
case 'fr': {
const output = input.replaceAll(' ', '').replaceAll(',', '.');
return output;
}
}
}
*/
*/
export function removeNumericFormatting(input: string | undefined): string {
if (input === undefined) return '';

Expand Down