Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(middleware): replace %X_UA_COMPATIBLE% marker anywhere in the file #3718

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

devoto13
Copy link
Collaborator

Previously %X_UA_COMPATIBLE% marker was only replaced if it was located at the start of the line. The limitation looks pretty arbitrary and caused the marker not to be replaced in the custom debug.html file used by Angular CLI as the marker was not located at the start of the line (probably because the file was re-formatted). This commit changes the behavior to replace the marker anywhere within the file, not just at the start of the line and thus fixes the problem for Angular CLI and potentially other people using custom files.

Fixes #3711

Previously %X_UA_COMPATIBLE% marker was only replaced if it was located at the start of the line.
The limitation looks pretty arbitrary and caused the marker not to be replaced in the custom
debug.html file used by Angular CLI as the marker was not located at the start of the line
(probably because the file was re-formatted). This commit changes the behavior to replace the
marker anywhere within the file, not just at the start of the line and thus fixes the problem
for Angular CLI and potentially other people using custom files.

Fixes karma-runner#3711
@alan-agius4
Copy link
Contributor

@devoto13, thanks for the quick fix. Note: CI is failing.

alan-agius4
alan-agius4 previously approved these changes Oct 28, 2021
@karmarunnerbot
Copy link
Member

🎉 This PR is included in version 6.3.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@devoto13 devoto13 deleted the fix-marker branch November 1, 2021 21:20
@sroucheray
Copy link

Thanks for the fix @devoto13 & @alan-agius4 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

%X_UA_COMPATIBLE% displayed in the runner web page in debug mode
5 participants