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