[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix regex in language and locale recognition
Browse files Browse the repository at this point in the history
This was first mentioned in github/codeql-action#418
Also, raised in oasis-tcs#488.

cc: @lcartey
  • Loading branch information
aeisenberg committed Apr 9, 2021
1 parent a22c039 commit f1f6ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Schemata/sarif-schema-2.1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2354,7 +2354,7 @@
"description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase culture code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).",
"type": "string",
"default": "en-US",
"pattern": "^[a-zA-Z]{2}|^[a-zA-Z]{2}-[a-zA-Z]{2}]?$"
"pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$"
},

"versionControlProvenance": {
Expand Down Expand Up @@ -3060,7 +3060,7 @@
"description": "The language of the messages emitted into the log file during this run (expressed as an ISO 639-1 two-letter lowercase language code) and an optional region (expressed as an ISO 3166-1 two-letter uppercase subculture code associated with a country or region). The casing is recommended but not required (in order for this data to conform to RFC5646).",
"type": "string",
"default": "en-US",
"pattern": "^[a-zA-Z]{2}|^[a-zA-Z]{2}-[a-zA-Z]{2}]?$"
"pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$"
},

"contents": {
Expand Down

0 comments on commit f1f6ae7

Please sign in to comment.