Skip to content

Commit

Permalink
refactor: adjust to string.js refactor to string.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaxeer committed May 19, 2024
1 parent 87dbd5c commit 0d0c0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgui/packages/common/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function capitalizeAll(str: string): string {
* ```
*/
export function capitalizeFirst(str: string): string {
return str.replace(/^\w/, (letter) => letter.toUpperCase());
return str.replace(/^[\wа-яА-ЯёЁ]/, (letter) => letter.toUpperCase()); // BANDASTATION EDIT - Original: return str.replace(/^\w/, (letter) => letter.toUpperCase());
}

const WORDS_UPPER = ['Id', 'Tv'] as const;
Expand Down

0 comments on commit 0d0c0cd

Please sign in to comment.