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

Commit a31c2f2

Browse files
author
Long Ho
committed
fix(@formatjs/cli): fix ID generation when description is undefined
1 parent 4cd1f0b commit a31c2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function extract(
8080
resourcePath: 'dummy',
8181
} as any,
8282
idInterpolationPattern,
83-
{content: `${defaultMessage}#${description}`}
83+
{content: defaultMessage + (description ? '#' + description : '')}
8484
),
8585
};
8686
}

0 commit comments

Comments
 (0)