We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b0e0b commit 1109444Copy full SHA for 1109444
test/rules/src/https_everywhere_checker/rules.py
@@ -271,8 +271,11 @@ def getCoverageProblems(self):
271
if not "*" in target and not self.excludes(("http://%s/" % target)):
272
continue
273
274
- # '*.example.com' match 'www.example.com' but not 'secure.account.exmple.com'
275
- pattern = target.replace('.', '\.').replace('*', '[^\.]+')
+ # According to the logic in rules.js available at
+ # EFForg/https-everywhere/blob/master/chromium/rules.js#L350-L355
276
+ #
277
+ # `*.example.com` matches `bar.example.com` and `foo.bar.example.com` etc.
278
+ pattern = target.replace('.', '\.').replace('*', '.+')
279
pattern = '^' + pattern + '$'
280
281
for test in myTestTargets:
0 commit comments