fix regexp for validate an integer in guides [ci skip]
This commit is contained in:
parent
9d519eefbc
commit
fce9c4e5e1
|
@ -470,7 +470,7 @@ point number. To specify that only integral numbers are allowed set
|
||||||
If you set `:only_integer` to `true`, then it will use the
|
If you set `:only_integer` to `true`, then it will use the
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
/\A[+-]?\d+\Z/
|
/\A[+-]?\d+\z/
|
||||||
```
|
```
|
||||||
|
|
||||||
regular expression to validate the attribute's value. Otherwise, it will try to
|
regular expression to validate the attribute's value. Otherwise, it will try to
|
||||||
|
|
Loading…
Reference in New Issue