Skip to content

Commit

Permalink
fix term detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Jul 12, 2023
1 parent 29d26a9 commit 5f20e3f
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 @@ -4,7 +4,7 @@ statement_sep = _{ WHITE_SPACE | "," | "." | ";" | "!" | "?" | (":" ~ WHITE_SPAC
allowed_chars = _{"_" | "+" | "#" | "-"}
url_end = _{ WHITE_SPACE | "," }

isbn = @{ "978" ~ ("-"? ~ ASCII_DIGIT){7,10} ~ EOI }
isbn = @{ "978"? ~ ("-"? ~ ASCII_DIGIT){7,10} ~ EOI }
doi = @{ "10." ~ ASCII_DIGIT{4,9} ~ WHITE_SPACE? ~ "/" ~ 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 5f20e3f

Please sign in to comment.