[release/13.5] Constrain aspire-starter port replacers to localhost: URLs
Merged
JA
1mo ago+40+40+01234567890123456789-10-10-01234567890123456789
Backport of #20031 to release/13.5
/cc @JamesNK @bart-vmware
Customer Impact
Aspire Starter App generation can replace matching port-number literals in unrelated vendored JavaScript files, producing randomly different Bootstrap artifacts and noisy diffs between otherwise equivalent projects.
Testing
The source PR manually installed pre-fix and post-fix templates and generated projects with different ports. Before the fix, bootstrap.bundle.js changed; after the fix, launchSettings.json used the requested ports while bootstrap.bundle.js remained byte-for-byte identical.
Risk
Low. The change is limited to replacement conditions for ten dynamic port symbols and preserves substitutions in localhost: URL contexts.
Regression?
No