Skip to content

Conversation

@dongfengweixiao
Copy link
Contributor

  • 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
  • Set "Studio Profile" as the default return value for the urlSite().

- 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
@DogmaDragon DogmaDragon merged commit 4d27274 into stashapp:main Oct 3, 2024
2 checks passed
DogmaDragon added a commit that referenced this pull request Oct 14, 2024
Add check to skip unmatched URLs
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.

2 participants