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 regex for HTML comment tokens #2222

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Feb 27, 2024

Address code scanning alert by altering the regex for HTML comment tokens used in the post processing step. Apparently --!> is a valid way to end an HTML comment 🤯

Fixes https://github.com/MetaMask/snaps/security/code-scanning/1

@FrederikBolding FrederikBolding requested a review from a team as a code owner February 27, 2024 11:25
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.60%. Comparing base (97c9fef) to head (1ee9377).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2222   +/-   ##
=======================================
  Coverage   96.60%   96.60%           
=======================================
  Files         337      337           
  Lines        7599     7599           
  Branches     1175     1175           
=======================================
  Hits         7341     7341           
  Misses        258      258           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FrederikBolding FrederikBolding merged commit 4774979 into main Feb 27, 2024
150 checks passed
@FrederikBolding FrederikBolding deleted the fb/fix-html-comment-regex branch February 27, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants