MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
723 stars 557 forks source link

feat: allow wildcards in `allowedOrigins` #2458

Closed FrederikBolding closed 3 months ago

FrederikBolding commented 4 months ago

Allow wildcards in allowedOrigins by generating a RegExp based on each allowed origin and testing the origin against it.

Closes #2457

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.33%. Comparing base (e95e670) to head (b5654d4).

:exclamation: Current head b5654d4 differs from pull request most recent head 8c1d6a4

Please upload reports for the commit 8c1d6a4 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2458 +/- ## ======================================= Coverage 94.32% 94.33% ======================================= Files 438 438 Lines 9021 9032 +11 Branches 1382 1383 +1 ======================================= + Hits 8509 8520 +11 Misses 512 512 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.