Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
fix(@formatjs/cli): fix ID generation when description is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Ho committed Apr 15, 2020
1 parent 4cd1f0b commit a31c2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function extract(
resourcePath: 'dummy',
} as any,
idInterpolationPattern,
{content: `${defaultMessage}#${description}`}
{content: defaultMessage + (description ? '#' + description : '')}
),
};
}
Expand Down

0 comments on commit a31c2f2

Please sign in to comment.