I suck at git.
This commit is contained in:
commit
2e38258cd9
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@biesbjerg/ng2-translate-extract",
|
||||
"version": "0.1.1",
|
||||
"version": "0.2.1",
|
||||
"description": "Extract strings from projects using ng2-translate",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
@ -21,7 +21,7 @@ export class DirectiveParser extends AbstractTemplateParser implements ParserInt
|
||||
.each((i: number, element: CheerioElement) => {
|
||||
const $element = $(element);
|
||||
const attr = $element.attr('translate');
|
||||
const text = $element.text();
|
||||
const text = $element.text().trim();
|
||||
|
||||
if (attr) {
|
||||
results.push(attr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user