A decentralized music tracking and discovery platform built on AT Protocol 🎵
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: update validation for record key to allow only underscores and hyphens

+2 -2
+2 -2
apps/api/src/scripts/feed.ts
··· 55 55 message: "What is the record key (rkey) for the feed?", 56 56 }); 57 57 58 - if (!/^[a-zA-Z0-9_.-]{3,30}$/.test(rkey.value)) { 58 + if (!/^[a-zA-Z0-9_-]{3,30}$/.test(rkey.value)) { 59 59 console.error( 60 - "Invalid record key. Only alphanumeric characters, underscores, hyphens, and periods are allowed. Length must be between 3 and 30 characters." 60 + "Invalid record key. Only alphanumeric characters, underscores, and hyphens are allowed. Length must be between 3 and 30 characters." 61 61 ); 62 62 process.exit(1); 63 63 }