Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdf/1.5/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</xsd:simpleType>

<xsd:simpleType name="time">
<xsd:restriction base="xsd:double">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:pattern value="\d+ \d+"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also update the others as well

Suggested change
<xsd:pattern value="\d+ \d+"/>
<xsd:pattern value="\s*\d+\s+\d+\s*"/>

Copy link
Contributor Author

@FirefoxMetzger FirefoxMetzger Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jennuine Hm, if we are worried about whitespace, wouldn't something like this be a bit more readable?

<xsd:restriction base="xsd:string">
  <xsd:whiteSpace value="collapse"/>
  <xsd:pattern value="\d+ \d+"/>
</xsd:restriction>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jennuine Done.

</xsd:restriction>
</xsd:simpleType>

Expand Down
4 changes: 3 additions & 1 deletion sdf/1.6/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</xsd:simpleType>

<xsd:simpleType name="time">
<xsd:restriction base="xsd:double">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:pattern value="\d+ \d+"/>
</xsd:restriction>
</xsd:simpleType>

Expand Down
4 changes: 3 additions & 1 deletion sdf/1.7/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</xsd:simpleType>

<xsd:simpleType name="time">
<xsd:restriction base="xsd:double">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:pattern value="\d+ \d+"/>
</xsd:restriction>
</xsd:simpleType>

Expand Down
4 changes: 3 additions & 1 deletion sdf/1.8/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</xsd:simpleType>

<xsd:simpleType name="time">
<xsd:restriction base="xsd:double">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:pattern value="\d+ \d+"/>
</xsd:restriction>
</xsd:simpleType>

Expand Down