Skip to content

Commit 4965ffc

Browse files
committed
streamlined bomLink regex
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 145d4ad commit 4965ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schema/bom-1.5.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ limitations under the License.
6363
</xs:annotation>
6464
<xs:restriction base="xs:anyURI">
6565
<!-- part of the pattern is based on `bom.serialNumber`'s pattern -->
66-
<xs:pattern value="urn:cdx:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\})/[1-9][0-9]*"/>
66+
<xs:pattern value="urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*"/>
6767
</xs:restriction>
6868
</xs:simpleType>
6969
<xs:simpleType name="bomLinkElementType">
@@ -75,7 +75,7 @@ limitations under the License.
7575
</xs:annotation>
7676
<xs:restriction base="xs:anyURI">
7777
<!-- part of the pattern is based on `bom.serialNumber`'s pattern -->
78-
<xs:pattern value="urn:cdx:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\})/[1-9][0-9]*#.+"/>
78+
<xs:pattern value="urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*#.+"/>
7979
</xs:restriction>
8080
</xs:simpleType>
8181
<xs:simpleType name="bomLinkType">

0 commit comments

Comments
 (0)