This commit is contained in:
Timothy Jaeryang Baek
2026-07-15 05:17:41 -04:00
parent a3908f1281
commit 3ce3c52936
24 changed files with 210 additions and 177 deletions
+3 -3
View File
@@ -34,9 +34,9 @@ import { decode } from 'html-entities';
export const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
export const formatNumber = (num: number): string => {
return new Intl.NumberFormat('en-US', { notation: 'compact', maximumFractionDigits: 1 }).format(
num
);
return new Intl.NumberFormat('en-US', { notation: 'compact', maximumFractionDigits: 1 })
.format(num)
.toLowerCase();
};
function escapeRegExp(string: string): string {