Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Apr 25, 2019
2 parents c4baa69 + 3b19ef6 commit 8694865
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
web.py==0.39
"""

import re
import os
import web
import jwt
Expand Down Expand Up @@ -115,7 +116,9 @@ def get_token_from_header():
def build_parms(filters):
if not filters:
return "", {}
params = filters.split(',')
# split by ',' except those preceeded by a top level domain, which will
# be a tag URI scheme (e.g. tag:openbookpublishers.com,2009)
params = re.split(r"(?<!\.[a-z]{3}),", filters)
options = {}
types = []
schemes = []
Expand Down

0 comments on commit 8694865

Please sign in to comment.