-
Notifications
You must be signed in to change notification settings - Fork 13
Regex matches any URL containing "github" in its path #153
Comments
I noticed in #136 that you posted a link to this regex test page: https://regex101.com/r/bW6cYw/3 I imagine this regex is from a previous version, as it's not the regex used in the current version. See this page, which includes the example URLs from above: https://regex101.com/r/sEZPE5/2 |
This was actually fixed in #152 :) |
Make sure you havent edited the style (which prevents it from auto updating). Currently, the latest version is 1.27.0 |
Line 1 in 24e799f
Just had another look at the difference between your regex and regex in master. it contains part of newer work which introduces githubstatus. but doesnt contain the fix that was mentioned above. |
I installed it from this page: https://userstyles.org/styles/168350/githubdarktheme Strangely, I still get this problem if I delete the style outright, and re-add it (from the above link). Perhaps there's something wrong with my Firefox profile. |
Here's the regex, verbatim: ^https?://(?!www.google.com)(((?!desktop).*.)?(githubusercontent|githubstatus|github).(?!io|myshopify|blog)).* |
Try removing the style and installing via https://github.com/DarkThemeHub/GithubDarkTheme#step-2 Userstyles hasnt been reliable with updating the style file |
Boom. That did it. Thanks bunches for your time. Sorry for not reading the README. It never even crossed my mind that userstyles.org could be the issue. cheers! |
No problem! If you've come across any other bugs, dont hesitate to submit an issue :) |
I just did a sanity check on the style in userstyles site. it has the correct regex. what the heck... I noticed the style file when installed is different to what i put in. I guess they process it and the regex processor is whack... I would take this theme off there, but its my only source of users. 😞 |
Describe the bug
The regular expression used to match pages is too permissive. It will match any URL containing
github
, even if it's just in the path part of the URL.Examples:
Affected Regexp:
Expected behavior
I expect this theme to only apply on
github.com
(and perhaps related domains?).Screenshot
The text was updated successfully, but these errors were encountered: