Skip to content

Commit

Permalink
query like identifier=http://medarhiv.ru/organizations|%23%D0%B6Y= pr…
Browse files Browse the repository at this point in the history
…ocessed correctly now
  • Loading branch information
Alexey Slynko committed May 12, 2017
1 parent 2632b09 commit 144d368
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fhir/query_string.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ exports.parse = (resourceType, str) ->
a.shift()
str = a.join('?')

pairs = str.trim().split("&").filter(identity).map((x)-> x.trim().split('=')).map(typed)
pairs = str.trim().split("&").filter(identity).map(
(x)->
parts = x.trim().split('=')
[parts.shift(), parts.join('=')]
).map(typed)
result = {query: resourceType}
expr = grouping(result, pairs)
forms =
Expand Down

0 comments on commit 144d368

Please sign in to comment.