-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor URL detection logic to match sites:
- Change the original if-else chain to iterate through the urlPatterns array - Each urlPattern object contains pattern and site attributes - Use regular expressions to test the URL and return the corresponding site name - Added regular expression matching rules for some additional sites
- Loading branch information
1 parent
b02d5c2
commit 93e8731
Showing
1 changed file
with
172 additions
and
74 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