Fix bug in PipeParser

This commit is contained in:
Kim Biesbjerg
2017-01-13 09:34:34 +01:00
parent 7822916e28
commit fcd37fd000
3 changed files with 8 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export class PipeParser extends AbstractTemplateParser implements ParserInterfac
protected _parseTemplate(template: string): TranslationCollection {
let collection: TranslationCollection = new TranslationCollection();
const regExp: RegExp = /(['"`])([^\1\r\n]*?)\1\s*\|\s*translate/g;
const regExp: RegExp = /(['"`])([^>\1\r\n]*?)\1\s*\|\s*translate/g;
let matches: RegExpExecArray;
while (matches = regExp.exec(template)) {
collection = collection.add(matches[2]);