Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion sdf/1.5/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</xsd:simpleType>

<xsd:simpleType name="time">
<xsd:restriction base="xsd:double">
<xsd:restriction base="xsd:string">
<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
3 changes: 2 additions & 1 deletion sdf/1.6/schema/types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
</xsd:simpleType>

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

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

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

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

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

Expand Down