Move glob patterns to extractor

This commit is contained in:
Kim Biesbjerg
2016-12-04 22:53:59 +01:00
parent eac24905de
commit 74fd853097
3 changed files with 25 additions and 17 deletions

View File

@@ -17,7 +17,7 @@ export class TypescriptParser implements ParserInterface {
for (let patternName in this.patterns) {
const regExp = this._createRegExp(patternName, {
TRANSLATE_SERVICE: translateServiceVar
'TRANSLATE_SERVICE': translateServiceVar
});
let matches;
@@ -42,7 +42,7 @@ export class TypescriptParser implements ParserInterface {
pattern = pattern.replace('{{' + key + '}}', replaceVars[key]);
});
return new RegExp(pattern, 'gi');
return new RegExp(pattern, 'g');
}
/**