Skip to content

Commit aed105e

Browse files
committed
Fix typo on readme
1 parent 65f1ae9 commit aed105e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ Here are some example definitions and explanations:
369369
<a id="rule-default"></a>
370370
#### default/defaults
371371

372-
This is special rule that doesn't validate anything. It just set default value to your attribute.
372+
This is special rule that doesn't validate anything.
373+
It just set default value to your attribute if that attribute is empty or not present.
373374

374375
For example if you have validation like this
375376

@@ -461,7 +462,7 @@ $validation = $validator->validate($inputs, [
461462
]);
462463
```
463464

464-
> For commmon URL scheme and mailto, we combine `FILTER_VALIDATE_URL` to validate URL format and `preg_match` to validate it's scheme.
465+
> For common URL scheme and mailto, we combine `FILTER_VALIDATE_URL` to validate URL format and `preg_match` to validate it's scheme.
465466
Except for JDBC URL, currently it just check a valid JDBC scheme.
466467

467468
<a id="rule-ip"></a>

0 commit comments

Comments
 (0)