lib/brakeman/checks/check_validation_regex.rb in brakeman-3.7.2 vs lib/brakeman/checks/check_validation_regex.rb in brakeman-4.0.0
- old
+ new
@@ -89,10 +89,10 @@
warn :model => @current_model,
:warning_type => "Format Validation",
:warning_code => :validation_regex,
:message => "Insufficient validation for '#{get_name validator}' using #{regex.inspect}. Use \\A and \\z as anchors",
:line => value.line,
- :confidence => CONFIDENCE[:high]
+ :confidence => :high
end
end
#Get the name of the attribute being validated.
def get_name validator