Skip to content

Commit d421682

Browse files
committed
Merge branch 'hotfix/doc-revisions'
2 parents 5263785 + abbe8a2 commit d421682

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ import { Form, validation } from "form-and-function";
162162

163163
If this looks long-winded then say hello to some built in validators! Currently we provide the following:
164164

165-
* `validation.atLeast` - Is the value at least some length.
166-
* `validation.atMost` - Is the value at most some length.
167-
* `validation.numeric` - Is the value numeric only.
165+
* `validation.atLeast` - Is the value at least some length.
166+
* `validation.atMost` - Is the value at most some length.
167+
* `validation.numeric` - Is the value numeric only.
168168

169169
They can be used as follows:
170170

@@ -231,8 +231,8 @@ an array of validators.
231231

232232
```js
233233
<Form
234-
validators={validation.all({
235-
longNumber: validation.combine([
234+
validators={validation.create({
235+
longNumber: validation.all([
236236
validation.atLeast(
237237
{ chars: 3 },
238238
{
@@ -258,8 +258,8 @@ an array of strings, and should return a string.
258258

259259
```js
260260
<Form
261-
validators={validation.all({
262-
longNumber: validation.combine([
261+
validators={validation.create({
262+
longNumber: validation.all([
263263
validation.atLeast({ chars: 3 }, {
264264
short: ({ chars }) => `${chars} characters minimum`,
265265
undef: "provided"

docs/static/js/main.78760357.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/main.78760357.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)