angular/packages/compiler/src/expression_parser
Kristiyan Kostadinov 6abc13330b fix(compiler): don't report parse error for interpolation inside string in property binding (#40267)
Currently we check whether a property binding contains an interpolation using a regex so
that we can throw an error. The problem is that the regex doesn't account for quotes
which means that something like `[prop]="'{{ foo }}'"` will be considered an error, even
though it's not actually an interpolation.

These changes build on top of the logic from #39826 to account for interpolation
characters inside quotes.

Fixes #39601.

PR Close #40267
2021-01-05 13:57:23 -08:00
..
ast.ts refactor(compiler-cli): add keySpan to parsed events (#39609) 2020-11-12 15:09:17 -08:00
lexer.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
parser.ts fix(compiler): don't report parse error for interpolation inside string in property binding (#40267) 2021-01-05 13:57:23 -08:00