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: forms/en/validation.texy
+3-3
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ For elements `addText()`, `addPassword()`, `addTextArea()`, `addEmail()`, `addIn
59
59
| `Range` | value in the range | pair `[int\|float, int\|float]`
60
60
61
61
The `Integer`, `Numeric` a `Float` rules automatically convert the value to integer (or float respectively). Furthermore, the `URL` rule also accepts an address without a schema (eg `nette.org`) and completes the schema (`https://nette.org`).
62
-
The expressions in `Pattern` and `PatternInsensitive` must be valid for the whole value, ie as if it were wrapped in the characters `^` and `$`.
62
+
The expressions in `Pattern` and `PatternInsensitive` must be valid for the whole value, i.e. as if it were wrapped in the characters `^` and `$`.
63
63
64
64
65
65
Number of Items
@@ -89,7 +89,7 @@ The `MimeType` and `Image` require PHP extension `fileinfo`. Whether a file or i
89
89
Error Messages
90
90
==============
91
91
92
-
All predefined rules except `Pattern` and `PatternInsensitive` have a default error message, so they it be omitted. However, by passing and formulating all customized messages, you will make the form more user-friendly.
92
+
All predefined rules except `Pattern` and `PatternInsensitive` have a default error message, so they can be omitted. However, by passing and formulating all customized messages, you will make the form more user-friendly.
93
93
94
94
You can change the default messages in [forms:configuration], by modifying the texts in the `Nette\Forms\Validator::$messages` array or by using [translator|rendering#translating].
->addRule($form::Pattern, 'The postal code is not five digits', '\d{5}');
280
280
```
281
281
282
-
The filter is included between the validation rules and conditions and therefore depends on the order of the methods, ie the filter and the rule are called in the same order as is the order of the `addFilter()` and `addRule()` methods.
282
+
The filter is included between the validation rules and conditions and therefore depends on the order of the methods, i.e. the filter and the rule are called in the same order as is the order of the `addFilter()` and `addRule()` methods.
0 commit comments