mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(compiler): prevent usage of reserved control flow symbol in custom interpolation context. (#55809)
* Fixes the issue where using a reserved control flow @ symbol in a custom interpolation context yields improper parser feedback. PR Close #55809
This commit is contained in:
committed by
Andrew Scott
parent
20a530acb6
commit
2bb12ac02f
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
const UNUSABLE_INTERPOLATION_REGEXPS = [
|
||||
/@/, // control flow reserved symbol
|
||||
/^\s*$/, // empty
|
||||
/[<>]/, // html tag
|
||||
/^[{}]$/, // i18n expansion
|
||||
|
||||
Reference in New Issue
Block a user