Skip to content

Commit

Permalink
fix: allow company website to be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 7, 2024
1 parent 27d2ebd commit 78b52cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/agent/generate/spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ const FLAGGABLE_PROMPTS = {
'company-website': {
message: messages.getMessage('flags.company-website.summary'),
validate: (d: string): boolean | string => {
if (!d.length) return 'Company website cannot be empty';
// Allow empty string
if (d.length === 0) return true;

try {
new URL(d);
Expand Down

0 comments on commit 78b52cc

Please sign in to comment.