Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 6b74905

Browse files
committed
Looser constraints on number formating
Signed-off-by: Kevin Rocard <[email protected]>
1 parent 155f46f commit 6b74905

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

schemas/ParameterSettings.xsd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
<xs:complexType name="BooleanParameterType">
1919
<xs:simpleContent>
2020
<xs:restriction base="ParameterType">
21-
<xs:pattern value="([01][\s]*)+"/>
22-
<xs:pattern value="((0x0|0x1)[\s]*)+"/>
21+
<xs:pattern value="[01]([\s]+[01])*"/>
22+
<xs:pattern value="0x[01]([\s]+0x[01])*"/>
2323
<xs:attribute name="ValueSpace" use="prohibited"/>
2424
</xs:restriction>
2525
</xs:simpleContent>
2626
</xs:complexType>
2727
<xs:complexType name="IntegerParameterType">
2828
<xs:simpleContent>
2929
<xs:restriction base="ParameterType">
30-
<xs:pattern value="(0|([+-]?[1-9][0-9]*))(\s+(0|([+-]?[1-9][0-9]*)))*"/>
31-
<xs:pattern value="(0x[0-9a-fA-F]+)(\s+(0x[0-9a-fA-F]+))*"/>
30+
<xs:pattern value="[+-]?\d+(\s+[+-]?\d+)*"/>
31+
<xs:pattern value="0x[0-9a-fA-F]+(\s+(0x[0-9a-fA-F]+))*"/>
3232
<xs:attribute name="ValueSpace" use="prohibited"/>
3333
</xs:restriction>
3434
</xs:simpleContent>
@@ -43,7 +43,7 @@
4343
<xs:complexType name="PointParameterType">
4444
<xs:simpleContent>
4545
<xs:restriction base="ParameterType">
46-
<xs:pattern value="((0|[+-]?0\.[0-9]+|(([+-]?[1-9][0-9]*)(\.[0-9]+)?))([Ee][+-]?[0-9]+)?)(\s+(0|[+-]?0\.[0-9]+|(([+-]?[1-9][0-9]*)(\.[0-9]+)?))([Ee][+-]?[0-9]+)?)*"/>
46+
<xs:pattern value="[+-]?\d+(\.\d+)?([eE][+-]?\d+)?(\s+[+-]?\d+(\.\d+)?([eE][+-]?\d+)?)*"/>
4747
<xs:pattern value="(0x[0-9a-fA-F]+)(\s+(0x[0-9a-fA-F]+))*"/>
4848
</xs:restriction>
4949
</xs:simpleContent>

0 commit comments

Comments
 (0)