fixing RegExp command in doc

master
rekarnar 2016-08-08 12:13:23 +05:45
parent 87c6cc7b71
commit 87357eae33
1 changed files with 7 additions and 7 deletions

View File

@ -163,7 +163,7 @@ __Examples__
The value of the keyword should be a string. The data to be valid should match the regular expression defined by the keyword value.
Ajv uses `new Regex(value)` to create the regular expression that will be used to test data.
Ajv uses `new RegExp(value)` to create the regular expression that will be used to test data.
__Example__
@ -270,7 +270,7 @@ __Examples__
_invalid_: `[1,"abc"]`
2. _schema_:
2. _schema_:
```json
{
"items": [
@ -495,7 +495,7 @@ __Examples__
_valid_: `{}`, `{"foo": 1}`, `{"foo": 1, "bar": 2}`, any non-object
_invalid_: `{"a": 3}`, `{"foo": 1, "baz": 3}`
2. _schema_:
```json
{
@ -547,7 +547,7 @@ __Examples__
"foo": {
"properties": {
"bar": { "type": "number" }
}
}
}
}
}
@ -807,13 +807,13 @@ __Examples__
```
_valid_:
- `{ "power": 9000, "disbelief": true, "confidence": true }`
- `{ "confidence": true }`
- `{ "power": 1000, "confidence": true }`
_invalid_:
- `{ "power": 9000 }` (`disbelief` & `confidence` are required)
- `{ "power": 9000, "disbelief": true }` (`confidence` is always required)
- `{ "power": 1000 }`
@ -838,7 +838,7 @@ __Examples__
_valid_: `1`, `5`, `10`, `20`, `50`, `100`, `200`, `500`, `1000`
_invalid_:
- `-1`, `0` (<1)
- `2000` (>1000)
- `11`, `57`, `123` (any number with more than one non-zero digit)