summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-06/optional/ecmascript-regex.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2019-06/optional/ecmascript-regex.json')
-rw-r--r--json/tests/draft2019-06/optional/ecmascript-regex.json13
1 files changed, 13 insertions, 0 deletions
diff --git a/json/tests/draft2019-06/optional/ecmascript-regex.json b/json/tests/draft2019-06/optional/ecmascript-regex.json
new file mode 100644
index 0000000..08dc936
--- /dev/null
+++ b/json/tests/draft2019-06/optional/ecmascript-regex.json
@@ -0,0 +1,13 @@
+[
+ {
+ "description": "ECMA 262 regex non-compliance",
+ "schema": { "format": "regex" },
+ "tests": [
+ {
+ "description": "ECMA 262 has no support for \\Z anchor from .NET",
+ "data": "^\\S(|(.|\\n)*\\S)\\Z",
+ "valid": false
+ }
+ ]
+ }
+]