bug(material/schematics): v12 theming API migration should not rename variables appended with extra characters #24013
Labels
area: material/core
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
after running
ng update @angular/material
I end up with invalid scss:probably related to
components/src/material/schematics/ng-update/migrations/theming-api-v12/config.ts
Line 240 in 39921f4
and
components/src/material/schematics/ng-update/migrations/theming-api-v12/migration.ts
Lines 391 to 405 in 39921f4
components/src/material/schematics/ng-update/migrations/theming-api-v12/migration.ts
Lines 338 to 341 in 39921f4
Reproduction
I was able to reproduce it by running
yarn test material/schematics
in this repo since there is a test for itcomponents/src/material/schematics/ng-update/test-cases/v12/misc/theming-api-v12.spec.ts
Lines 790 to 804 in 39921f4
Expected Behavior
should not rename variables appended with extra characters
Actual Behavior
it renames it in an incorrect way
Environment
The text was updated successfully, but these errors were encountered: