Skip to content

Commit

Permalink
Merge pull request #158 from hypothesis/apa-embed-list
Browse files Browse the repository at this point in the history
Add APA URL prefixes to embed list
  • Loading branch information
robertknight authored Sep 28, 2018
2 parents 1470c2f + 77d264b commit 1137aca
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 1137aca

Please sign in to comment.