You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-15Lines changed: 1 addition & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ to tailor a message:
41
41
42
42
## validations
43
43
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.
45
45
46
46
for details, see the [code](/index.es6). it's very clear i promise.
47
47
@@ -117,22 +117,8 @@ note you can provide your own library and aliases. you can plug in [validator](h
117
117
118
118
## expansion
119
119
120
-
this library expresses *common, unambiguous* use cases and saves you effort where it makes the most sense.
121
-
122
120
[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.
123
121
124
122
for minor additions and modifications it's easiest to start there.
125
123
126
124
(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.
0 commit comments