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:
Bouguima, Walid 2024-05-15 16:26:56 +02:00 committed by Andrew Scott
parent 20a530acb6
commit 2bb12ac02f

View file

@ -7,6 +7,7 @@
*/
const UNUSABLE_INTERPOLATION_REGEXPS = [
/@/, // control flow reserved symbol
/^\s*$/, // empty
/[<>]/, // html tag
/^[{}]$/, // i18n expansion