Skip to content

Commit

Permalink
SCHEMA: Allow surrounding whitespace in integers (bids-standard#1742)
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 23, 2024
1 parent eecc617 commit bd08602
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 bd08602

Please sign in to comment.