File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 133
133
This required option is the "max" length value. Validation will fail if
134
134
the given value's length is **greater ** than this max value.
135
135
136
+ ltrim
137
+ ~~~~~~~
138
+
139
+ **type **: ``boolean `` **default **: ``null ``
140
+
141
+ If ``true ``, every kind of whitespace from the **beginning ** of the given value
142
+ will be ignored while checking for its length.
143
+
144
+ rtrim
145
+ ~~~~~~~
146
+
147
+ **type **: ``boolean `` **default **: ``null ``
148
+
149
+ If ``true ``, every kind of whitespace from the **end ** of the given value will
150
+ be ignored while checking for its length.
151
+
152
+ mergeConsecutiveWhitespaces
153
+ ~~~~~~~
154
+
155
+ **type **: ``boolean `` **default **: ``null ``
156
+
157
+ If ``true ``, consecutive whitespaces will count as a single character while
158
+ checking for the given value's length.
159
+
136
160
charset
137
161
~~~~~~~
138
162
Original file line number Diff line number Diff line change @@ -94,4 +94,12 @@ message
94
94
95
95
This is the message that will be shown if the value is blank.
96
96
97
+ trim
98
+ ~~~~~~~
99
+
100
+ **type **: ``boolean `` **default **: ``null ``
101
+
102
+ If ``true `` and if the given value is a ``string ``, every kind of whitespace will be
103
+ ignored while checking if it is not blank.
104
+
97
105
.. include :: /reference/constraints/_payload-option.rst.inc
You can’t perform that action at this time.
0 commit comments