Skip to content

Commit

Permalink
Fixed regex, double escape period.
Browse files Browse the repository at this point in the history
  • Loading branch information
malloryfreeberg committed Dec 5, 2017
1 parent 645c852 commit 2ebd85a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions json_schema/donor.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"properties": {
"age": {
"description": "Age in age_units. For embryos, measured since fertilization. For all others, measured since birth.",
"pattern": "^[0-9]+\.?[0-9]*-?[0-9]*\.?[0-9]*$",
"pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
"type": "string"
},
"age_unit": {
Expand Down Expand Up @@ -59,7 +59,7 @@
},
"height": {
"description": "Height of donor, in meters. Can be a range separated by a hyphen.",
"pattern": "^[0-9]+\.?[0-9]*-?[0-9]*\.?[0-9]*$",
"pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
"type": "string"
},
"is_living": {
Expand Down Expand Up @@ -112,7 +112,7 @@
},
"weight": {
"description": "Weight of donor, in kilograms. Can be a range separated by a hyphen.",
"pattern": "^[0-9]+\.?[0-9]*-?[0-9]*\.?[0-9]*$",
"pattern": "^[0-9]+\\.?[0-9]*-?[0-9]*\\.?[0-9]*$",
"type": "string"
}
},
Expand Down

0 comments on commit 2ebd85a

Please sign in to comment.