Skip to content

Commit

Permalink
SCHEMA: Allow surrounding whitespace in integers
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 21, 2024
1 parent 4c642bd commit 32825ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema/objects/formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ integer:
display_name: Integer
description: |
An integer which may be positive or negative.
pattern: '[+-]?\d+'
pattern: ' *[+-]?\d+ *'
number:
display_name: Number
description: |
A number which may be an integer or float, positive or negative.
pattern: '[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)([eE][+-]?[0-9]+)?'
pattern: ' *[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)([eE][+-]?[0-9]+)? *'
string:
display_name: String
description: |
Expand Down

0 comments on commit 32825ff

Please sign in to comment.