From 9824588133570daa5317a5d985c3c181c80c4354 Mon Sep 17 00:00:00 2001 From: Andrew Eisenberg Date: Fri, 5 May 2023 12:02:19 -0700 Subject: [PATCH] Fix broken regex `($i)` is not valid for javascript regexes. --- src/sarif-schema-2.1.0.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sarif-schema-2.1.0.json b/src/sarif-schema-2.1.0.json index 5020cc166..3af5db643 100644 --- a/src/sarif-schema-2.1.0.json +++ b/src/sarif-schema-2.1.0.json @@ -2368,7 +2368,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": "^(?i)[a-zA]{2}(-[a-z]{2})?$" + "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" }, "versionControlProvenance": { @@ -3078,7 +3078,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": "^(?i)[a-zA]{2}(-[a-z]{2})?$" + "pattern": "^[a-zA-Z]{2}(-[a-zA-Z]{2})?$" }, "contents": { @@ -3386,4 +3386,4 @@ } } } -} \ No newline at end of file +}