Skip to content

Commit 1fd4888

Browse files
committed
Update README.md
1 parent 72049a6 commit 1fd4888

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ to tailor a message:
4141

4242
## validations
4343

44-
except where starred, anything other than a string will fail validation.
44+
except where starred, functions only accept string values, anything else will fail validation.
4545

4646
for details, see the [code](/index.es6). it's very clear i promise.
4747

@@ -117,22 +117,8 @@ note you can provide your own library and aliases. you can plug in [validator](h
117117

118118
## expansion
119119

120-
this library expresses *common, unambiguous* use cases and saves you effort where it makes the most sense.
121-
122120
[react-formstate](https://github.com/dtrelogan/react-formstate) provides a variety of ways to express [validation logic](https://github.com/dtrelogan/react-formstate/blob/master/docs/validationWiring.md), including [registering](https://github.com/dtrelogan/react-formstate/blob/master/docs/validationWiring.md#registering-validation-functions) your own validation functions.
123121

124122
for minor additions and modifications it's easiest to start there.
125123

126124
(that being said, contributions to this library are welcome!)
127-
128-
## design remarks
129-
130-
you could provide a 'range' or 'between' validation, but are the bounds inclusive or exclusive?
131-
132-
you could pass a bundle of options to 'between', but then a default message becomes contextual.
133-
134-
this library keeps things simple:
135-
136-
```jsx
137-
v => v.gte(10).lt(50)
138-
```

0 commit comments

Comments
 (0)