Skip to content

Commit

Permalink
feat: parsing urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Jul 23, 2023
1 parent 5c1f1ab commit 4668b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summa-core/src/components/query_parser/summa_ql.pest
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ allowed_chars = _{"_" | "+" | "#" | "-"}
url_end = _{ WHITE_SPACE | "," }

isbn = @{ "978"? ~ ("-"? ~ ASCII_DIGIT){7,10} ~ EOI }
doi = @{ "10." ~ ASCII_DIGIT{4,9} ~ WHITE_SPACE? ~ "/" ~ WHITE_SPACE? ~ (!WHITE_SPACE ~ ANY)+ }
doi = @{ "10." ~ ASCII_DIGIT{4,9} ~ WHITE_SPACE? ~ ("/" | "%2f") ~ WHITE_SPACE? ~ (!WHITE_SPACE ~ ANY)+ }
wrapped_doi = _{ ("http" ~ "s"? ~ "://")? ~ "dx."? ~"doi.org/"? ~ doi }
// url = _{ ("http" ~ "s"? ~ "://")? ~ (!url_end ~ ANY)+ }

Expand Down

0 comments on commit 4668b88

Please sign in to comment.