Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit deb312c

Browse files
authored
Merge pull request #1672 from github/aeisenberg/sarif-again
Fix broken regex
2 parents 11fba50 + 9824588 commit deb312c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sarif-schema-2.1.0.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@
23682368
"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).",
23692369
"type": "string",
23702370
"default": "en-US",
2371-
"pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$"
2371+
"pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$"
23722372
},
23732373

23742374
"versionControlProvenance": {
@@ -3078,7 +3078,7 @@
30783078
"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).",
30793079
"type": "string",
30803080
"default": "en-US",
3081-
"pattern": "^(?i)[a-zA]{2}(-[a-z]{2})?$"
3081+
"pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$"
30823082
},
30833083

30843084
"contents": {
@@ -3386,4 +3386,4 @@
33863386
}
33873387
}
33883388
}
3389-
}
3389+
}

0 commit comments

Comments
 (0)