Skip to content

Commit

Permalink
SHIBUI-1047: Adding regex for real number between 0-1;
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodie Muramoto committed Jan 21, 2019
1 parent 239a606 commit b0c50a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
"type": "string",
"widget": {
"id": "number",
"step": "any"
"step": 0.01
},
"placeholder": "label.real-number",
"minimum": 0,
"maximum": 1,
"default": null,
"pattern": "^(0(\\.\\d+)?|1(\\.0+)?)?$"
"pattern": "^([0]*(\\.[0-9]+)?|[0]*\\.[0-9]*[1-9][0-9]*)$"
}
}
}
Expand Down

0 comments on commit b0c50a5

Please sign in to comment.