fix(compiler): i18n - trim whitespace from i18n custom ids (#34154)

Fixes #34147

PR Close #34154
This commit is contained in:
Pete Bacon Darwin
2019-12-03 08:36:56 +00:00
committed by Miško Hevery
parent 93ac362848
commit 64317c680d
3 changed files with 51 additions and 39 deletions

View File

@ -516,5 +516,5 @@ function _parseMessageMeta(i18n?: string): {meaning: string, description: string
[meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] :
['', meaningAndDesc];
return {meaning, description, id};
return {meaning, description, id: id.trim()};
}