Fix template regex to match translate pipe usage in input properties
This commit is contained in:
parent
b5e1125efb
commit
25760bab5b
@ -3,8 +3,8 @@ import { ParserInterface } from './parser.interface';
|
||||
export class HtmlParser implements ParserInterface {
|
||||
|
||||
public patterns = {
|
||||
PipeSingleQuote: '{{\\s*\'((?:\\\\.|[^\'\\\\])*)\'\\s*\\|\\s*translate(:.*?)?\\s*}}',
|
||||
PipeDoubleQuote: '{{\\s*"((?:\\\\.|[^"\\\\])*)"\\s*\\|\\s*translate(:.*?)?\\s*}}'
|
||||
PipeSingleQuote: '\'((?:\\\\.|[^\'\\\\])*)\'\\s*\\|\\s*translate(:.*?)?',
|
||||
PipeDoubleQuote: '"((?:\\\\.|[^"\\\\])*)"\\s*\\|\\s*translate(:.*?)?'
|
||||
}
|
||||
|
||||
public process(contents: string): string[] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user