I suck at git.

This commit is contained in:
Kim Biesbjerg
2016-12-07 06:36:47 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@biesbjerg/ng2-translate-extract", "name": "@biesbjerg/ng2-translate-extract",
"version": "0.1.1", "version": "0.2.1",
"description": "Extract strings from projects using ng2-translate", "description": "Extract strings from projects using ng2-translate",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

@@ -21,7 +21,7 @@ export class DirectiveParser extends AbstractTemplateParser implements ParserInt
.each((i: number, element: CheerioElement) => { .each((i: number, element: CheerioElement) => {
const $element = $(element); const $element = $(element);
const attr = $element.attr('translate'); const attr = $element.attr('translate');
const text = $element.text(); const text = $element.text().trim();
if (attr) { if (attr) {
results.push(attr); results.push(attr);