-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️🐛 [Trusted Types] Make AmpWorker Trusted Types compatible (#39211)
* ♻️🐛 [Trusted Types] Make AmpWorker Trusted Types compatible (#6) * fix regex to match subdomains properly * fixing regex * fixing hostname regex * typo * lint changes * lint fix * conditional fix * testing string conversion before passing * more permissive for testing * update test regex with more urls * fixing hostname * adding one more url to test allowlist * removing restrictions on testing due to dynamic url * mjs file extensions * replace slice with endsWith for readability
- Loading branch information
1 parent
a7cf8a6
commit 54c0400
Showing
1 changed file
with
50 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters