minor updates

This commit is contained in:
Ren Amamiya
2023-06-18 11:24:57 +07:00
parent 3cc24dc8c1
commit 7ec284d4a5
15 changed files with 174 additions and 164 deletions

View File

@@ -3,7 +3,7 @@ import destr from "destr";
import { nip19 } from "nostr-tools";
export function truncateContent(str, n) {
return str.length > n ? `${str.slice(0, n - 1)}…` : str;
return str.length > n ? `${str.slice(0, n - 1)}...` : str;
}
export function setToArray(tags: any) {