Truncate Nostr pubkeys in reply mentions See merge request soapbox-pub/soapbox!2328environments/review-develop-3zknud/deployments/2770
commit
a8b0dc93f2
@ -0,0 +1,6 @@
|
||||
/** Check whether the given input is a valid Nostr hexidecimal pubkey. */
|
||||
const isPubkey = (value: string) => /^[0-9a-f]{64}$/i.test(value);
|
||||
|
||||
export {
|
||||
isPubkey,
|
||||
};
|
Loading…
Reference in new issue