Skip to content

Commit 2bb12ac

Browse files
bougwalatscott
authored andcommitted
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
1 parent 20a530a commit 2bb12ac

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/compiler/src/assertions.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
const UNUSABLE_INTERPOLATION_REGEXPS = [
10+
/@/, // control flow reserved symbol
1011
/^\s*$/, // empty
1112
/[<>]/, // html tag
1213
/^[{}]$/, // i18n expansion

0 commit comments

Comments
 (0)