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 5a34ed0 commit 975ae56
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 @@ -12,8 +12,15 @@
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 975ae56

Please sign in to comment.