Skip to content

Commit

Permalink
Merge pull request #47 from hone/support_issue_88
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Sep 11, 2020
2 parents 6791296 + a0538ca commit 513c4d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/range_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ mod tests {
range_set_test!( caret_range: "^1.2.3", 2 );
range_set_test!( two_empty_ranges: "||", 1, 1 );
range_set_test!( two_xranges: "1.2.* || 2.*", 2, 2 );
range_set_test!( see_issue_88: "=1.2.3+meta", 1 );

range_set_nodecompat!( node_one_range: "1.2.3", 1 ); // this parses as "=1.2.3"

Expand Down
2 changes: 1 addition & 1 deletion src/semver.pest
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ xr_op = { "x" | "X" | "*" }
nr = { "0" | ('1' .. '9') ~ (('0' .. '9'))* }
tilde = { ( "~>" | "~" ) ~ space* ~ partial }
caret = { "^" ~ space* ~ partial }
qualifier = { ("-" ~ parts) }
qualifier = { (("-" | "+") ~ parts) }
parts = { part ~ ("." ~ part)* }
part = { nr | ("-" | '0' .. '9' | 'A' .. 'Z' | 'a' .. 'z')+ }
space = _{ " " | "\t" }

0 comments on commit 513c4d3

Please sign in to comment.