Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Conversation

@alan-agius4
Copy link
Collaborator

This commit fixes an issue with the regexp that caused incorrect output.

Closes #3128

@alan-agius4 alan-agius4 added area: common target: patch This PR is targeted for the next patch release labels May 15, 2023
@alan-agius4 alan-agius4 requested a review from CaerusKaru May 15, 2023 16:46
@alan-agius4 alan-agius4 requested a review from dgp1130 as a code owner May 16, 2023 08:47
This commit fixes an issue with the regexp that caused incorrect output.

Closes angular#3128
? // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64
doc.replace(
/ media="print" onload="this\.media='.+'"(?: ngCspMedia=".+")?><noscript><link .+?><\/noscript>/g,
/ media="print" onload="this\.media='.+?'"(?: ngCspMedia=".+")?><noscript><link .+?><\/noscript>/g,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any unit test to verify this line of code?

Copy link
Collaborator Author

@alan-agius4 alan-agius4 May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an e2e test that verifies this.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved.

@alan-agius4 alan-agius4 added action: merge PR author is ready for this to merge and removed action: review labels May 16, 2023
@alan-agius4 alan-agius4 merged commit b603f35 into angular:main May 16, 2023
@alan-agius4 alan-agius4 deleted the css-regexp branch May 16, 2023 14:26
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge PR author is ready for this to merge area: common target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Angular 16 SSR Injected CSS broken because of media=print

3 participants