method
regexp_using_multiline_anchors?
rails latest stable - Class:
ActiveModel::Validations::FormatValidator
regexp_using_multiline_anchors?(regexp)private
No documentation available.
# File activemodel/lib/active_model/validations/format.rb, line 48
def regexp_using_multiline_anchors?(regexp)
source = regexp.source
source.start_with?("^") || (source.end_with?("$") && !source.end_with?("\\$"))
end