mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
fixed versionPattern
This commit is contained in:
parent
58bad8a6cf
commit
f45d273af9
1 changed files with 1 additions and 2 deletions
|
|
@ -246,8 +246,7 @@ type DocumentPublisher struct {
|
|||
// RevisionNumber specifies a version string to denote clearly the evolution of the content of the document.
|
||||
type RevisionNumber string
|
||||
|
||||
var versionPattern = patternUnmarshal(`^(0|[1-9][0-9]*)$|^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)
|
||||
(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)$`)
|
||||
var versionPattern = patternUnmarshal("^(0|[1-9][0-9]*)$|^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)$")
|
||||
|
||||
// Engine contains information about the engine that generated the CSAF document.
|
||||
type Engine struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue