From 32825ffd9cf7f87c2edb5dcda057a51f9619e532 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 21 Mar 2024 17:04:28 -0400 Subject: [PATCH] SCHEMA: Allow surrounding whitespace in integers --- src/schema/objects/formats.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema/objects/formats.yaml b/src/schema/objects/formats.yaml index e0704bee31..804dfda885 100644 --- a/src/schema/objects/formats.yaml +++ b/src/schema/objects/formats.yaml @@ -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: |