Skip to content

Commit

Permalink
purl regex
Browse files Browse the repository at this point in the history
- addresses parts of oasis-tcs#710
- add additional `\\` to escape previously unescaped `/`
  • Loading branch information
tschmidtb51 committed Mar 27, 2024
1 parent 1cfd26f commit 2425782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion csaf_2.1/json_schema/csaf_json_schema.json
Expand Up @@ -251,7 +251,7 @@
"description": "The package URL (purl) attribute refers to a method for reliably identifying and locating software packages external to this specification.",
"type": "string",
"format": "uri",
"pattern": "^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*/.+",
"pattern": "^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+",
"minLength": 7
},
"sbom_urls": {
Expand Down
Expand Up @@ -243,7 +243,7 @@ Two `*` MUST NOT follow each other.
The package URL (PURL) representation (`purl`) is a `string` of 7 or more characters with `pattern` (regular expression):

```
^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*/.+
^pkg:[A-Za-z\\.\\-\\+][A-Za-z0-9\\.\\-\\+]*\\/.+
```

> The given pattern does not completely evaluate whether a PURL is valid according to the [cite](#PURL) specification.
Expand Down

0 comments on commit 2425782

Please sign in to comment.