fix(compiler): i18n - trim whitespace from i18n custom ids (#34154)
Fixes #34147 PR Close #34154
This commit is contained in:

committed by
Miško Hevery

parent
93ac362848
commit
64317c680d
@ -51,6 +51,12 @@ import {serializeNodes as serializeHtmlNodes} from '../ml_parser/util/util';
|
||||
]);
|
||||
});
|
||||
|
||||
it('should trim whitespace from custom ids (but not meanings)', () => {
|
||||
expect(extract('<div i18n="\n m1|d1@@i1\n ">test</div>')).toEqual([
|
||||
[['test'], '\n m1', 'd1', 'i1'],
|
||||
]);
|
||||
});
|
||||
|
||||
it('should extract from attributes without meaning and with id', () => {
|
||||
expect(
|
||||
extract(
|
||||
|
Reference in New Issue
Block a user