Actions
Bug #367
closedRegex for "validates_format_of" in Parameter model does not look right
Description
I have a parameter value with the value:
test value
However, I got a validation error because the following validation does not accept a variety of characters.
validates_format_of :name, :value, :with => /\A(\S+\s?)+\Z/, :message => "can't be blank or contain trailing white space"
It would be useful to have a more liberal validation like so:
validates_format_of :name, :value, :with => /^[\w\d\W]+$/, :message => "can't be blank or contain trailing white space"
So that the following lines can be accommodated:
* - nofile 65535%%* - nproc 65535
for /etc/security/limits.conf, for example.
Actions