aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-15 15:26:30 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-15 15:26:30 +0800
commit28cc7c6e1e943734d94c6b3c487f5b6430c2b997 (patch)
tree07149b40a2f593cfa695859211d337d0cd3c632c /ui
parent10e6048cfbbc5c2b69c9c7bdbd0ab062724fd34d (diff)
downloadDropOut-28cc7c6e1e943734d94c6b3c487f5b6430c2b997.tar.gz
DropOut-28cc7c6e1e943734d94c6b3c487f5b6430c2b997.zip
fix: Clean up main.rs by removing unused imports and updating variable names for clarity; enhance HomeView.svelte by correcting emoji processing logic
Diffstat (limited to 'ui')
-rw-r--r--ui/src/components/HomeView.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/HomeView.svelte b/ui/src/components/HomeView.svelte
index 732545f..7bb7e44 100644
--- a/ui/src/components/HomeView.svelte
+++ b/ui/src/components/HomeView.svelte
@@ -49,7 +49,7 @@
};
// Replace emojis
- let processed = body.replace(/:[a-z0-9_]+:/g, (match) => emojiMap[match] || match);
+ processed = processed.replace(/:[a-z0-9_]+:/g, (match) => emojiMap[match] || match);
// GitHub commit hash linking (simple version for 7-40 hex chars inside backticks)
processed = processed.replace(/`([0-9a-f]{7,40})`/g, (match, hash) => {