feat: token analytics

This commit is contained in:
Tim Baek
2026-02-01 10:19:59 +04:00
parent 3da4323ef3
commit 679e56c494
5 changed files with 147 additions and 26 deletions
+4
View File
@@ -28,6 +28,10 @@ import hljs from 'highlight.js';
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);
};
function escapeRegExp(string: string): string {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}