method

define_acronym_regex_patterns

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveSupport::Inflector::Inflections
define_acronym_regex_patterns() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/inflector/inflections.rb, line 250
        def define_acronym_regex_patterns
          @acronym_regex             = @acronyms.empty? ? /(?=a)b/ : /#{@acronyms.values.join("|")}/
          @acronyms_camelize_regex   = /^(?:#{@acronym_regex}(?=\b|[A-Z_])|\w)/
          @acronyms_underscore_regex = /(?:(?<=([A-Za-z\d]))|\b)(#{@acronym_regex})(?=\b|[^a-z])/
        end
Register or log in to add new notes.