Presences
Presences copied to clipboard
feat(aniwatch): add regex to support alternative domains
Description
Add regular expression matching to support alternative domains as the current presence only supports aniwatch.to which is blocked in some countries. The expression matches the string aniwatch
followed by any prefix to support domains such as aniwatchtv.to, it also matches any TLD as I personally use aniwatch.nz.
Acknowledgements
- [x] I read the Presence Guidelines
- [x] I linted the code by running
yarn format
- [x] The PR title follows the repo's commit conventions
Screenshots
Proof showing the creation/modification is working as expected
Before regex update
After regex update
tested on aniwatch.nz
and aniwatchtv.to
updated version to 1.0.3
I would personally go with a regex such as
aniwatch[a-z]*[.][a-z]{2,3}
Any updates for this PR?
Sorry about that. I noticed the issue with regex and decided to fix it later but got carried out in life. Now I applied a fix and tested it(Thanks to @mallusrgreatv2).
When your changes are ready, make sure to resolve merge conflicts and mark the PR as ready.
Closing for inactivity. You may open a new PR after resolving the issues mentioned in this one.