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 feed name validation to enforce length constraints between 3 and 240 characters

+2 -4
+2 -4
apps/api/src/scripts/feed.ts
··· 18 18 message: "What is the feed name?", 19 19 }); 20 20 21 - if (!/^[a-zA-Z0-9_.-]{3,30}$/.test(name.value)) { 22 - console.error( 23 - "Invalid feed name. Only alphanumeric characters, underscores, hyphens, and periods are allowed. Length must be between 3 and 30 characters." 24 - ); 21 + if (name.value.length < 3 || name.value.length > 240) { 22 + console.error("Feed name must be between 3 and 240 characters."); 25 23 process.exit(1); 26 24 } 27 25