From 1e9db5e1588a08899dd8e5b3d97a18e8b4a1afc6 Mon Sep 17 00:00:00 2001 From: zloster Date: Sun, 20 Nov 2016 20:31:52 +0200 Subject: [PATCH] Add optional check for non-ECMA 262 regular expressions --- tests/draft4/optional/ecmascript-regex.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/draft4/optional/ecmascript-regex.json diff --git a/tests/draft4/optional/ecmascript-regex.json b/tests/draft4/optional/ecmascript-regex.json new file mode 100644 index 00000000..08dc9360 --- /dev/null +++ b/tests/draft4/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 + } + ] + } +]