fix(migrations): avoid conflicts with some greek letters in control flow migration#55113
fix(migrations): avoid conflicts with some greek letters in control flow migration#55113crisbeto wants to merge 1 commit intoangular:mainfrom
Conversation
…low migration The control flow migration was using a couple of Greek letters as placeholders. This ended up conflicting with templates authored in Greek. These changes use a more obscure placeholder to make conflicts less likely. It also moves the placeholder generation to a centralized function so it's easier to make changes if we decide to update the pattern again. Fixes angular#55085.
| export function getPlaceholder( | ||
| value: string, kind: PlaceholderKind = PlaceholderKind.Default): string { | ||
| const name = `<<<ɵɵngControlFlowMigration_${kind}ɵɵ>>>`; | ||
| return `___${name}${value}${name}___`; |
There was a problem hiding this comment.
Technically things can still break if somebody is wrapping their content in ___<<<ɵɵngControlFlowMigration_0ɵɵ>>><<<ɵɵngControlFlowMigration_0ɵɵ>>>___ but hopefully it's a bit less likely than before.
|
Caretaker note: the presubmit is failing because of one unrelated flaky target. |
|
Nice, thanks for the fast response to the issue! I now wish had reported it sooner 😊 |
jessicajaniuk
left a comment
There was a problem hiding this comment.
LGTM! Thanks for fixing this, @crisbeto
…low migration (#55113) The control flow migration was using a couple of Greek letters as placeholders. This ended up conflicting with templates authored in Greek. These changes use a more obscure placeholder to make conflicts less likely. It also moves the placeholder generation to a centralized function so it's easier to make changes if we decide to update the pattern again. Fixes #55085. PR Close #55113
|
This PR was merged into the repository by commit 0c20c40. |
…low migration (angular#55113) The control flow migration was using a couple of Greek letters as placeholders. This ended up conflicting with templates authored in Greek. These changes use a more obscure placeholder to make conflicts less likely. It also moves the placeholder generation to a centralized function so it's easier to make changes if we decide to update the pattern again. Fixes angular#55085. PR Close angular#55113
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The control flow migration was using a couple of Greek letters as placeholders. This ended up conflicting with templates authored in Greek.
These changes use a more obscure placeholder to make conflicts less likely. It also moves the placeholder generation to a centralized function so it's easier to make changes if we decide to update the pattern again.
Fixes #55085.