...

Text file src/github.com/qri-io/jsonschema/testdata/draft3/optional/ecmascript-regex.json

Documentation: github.com/qri-io/jsonschema/testdata/draft3/optional

     1[
     2    {
     3        "description": "ECMA 262 regex dialect recognition",
     4        "schema": { "format": "regex" },
     5        "tests": [
     6            {
     7                "description": "[^] is a valid regex",
     8                "data": "[^]",
     9                "valid": true
    10            },
    11            {
    12                "description": "ECMA 262 has no support for lookbehind",
    13                "data": "(?<=foo)bar",
    14                "valid": false
    15            }
    16        ]
    17    }
    18]

View as plain text