Skip to content

Commit

Permalink
Add APA websites to URL patterns where client is known to be embedded.
Browse files Browse the repository at this point in the history
URL patterns provided by Kadidra McCloud at APA.

Fixes hypothesis/product-backlog#814
  • Loading branch information
robertknight committed Sep 28, 2018
1 parent 1470c2f commit 77d264b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bouncer/embed_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@
# Patterns are shell-style wildcards ('*' matches any number of chars, '?'
# matches a single char).
PATTERNS = [
# Hypothesis websites.
"h.readthedocs.io/*",
"web.hypothes.is/blog/*",

# Publisher partners:

# American Psychological Organization.
"psycnet.apa.org/fulltext/*",
"awspntest.apa.org/fulltext/*",
]

COMPILED_PATTERNS = [re.compile(fnmatch.translate(pat)) for pat in PATTERNS]
Expand Down

0 comments on commit 77d264b

Please sign in to comment.