Skip to content

Commit eba92cf

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 3055b92 commit eba92cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)