lib/devise-security/validators/password_complexity_validator.rb
# A Hash of the possible valid patterns that can be checked against. The keys
# for this Hash are singular symbols corresponding to entries in the
# localization files. Override or redefine this method if you want to include
# custom patterns (e.g., `letter: /\p{Alpha}/` for all letters).
#
# @return [Hash<Symbol,Regexp>]
A Hash of the possible valid patterns that can be checked against. The keys
for this Hash are singular symbols corresponding to entries in the
localization files. Override or redefine this method if you want to include
custom patterns .
A Hash of the possible valid patterns that can be checked against . The keys for this Hash are singular symbols corresponding to entries in the localization files . Override or redefine this method if you want to include custom patterns .
def patterns
    {
      digit: /\p{Digit}/,
      lower: /\p{Lower}/,
      symbol: /\p{Punct}|\p{S}/,
      upper: /\p{Upper}/
    }
  end
def patterns { digit : / \p {Digit} / , lower : / \p {Lower} / , symbol : / \p {Punct}| \p {S} / , upper : / \p {Upper} / } end
A Hash of the possible valid patterns that can be checked against.
A Hash of the possible valid patterns that can be checked against .
None
Hash<Symbol,Regexp>