Module: LDAP::Server::MatchingRule::StringDowncase

Defined in:
lib/ldap/server/match.rb

Instance Method Summary collapse

Instance Method Details

#normalize(x) ⇒ Object



183
# File 'lib/ldap/server/match.rb', line 183

def normalize(x); x.downcase.gsub(/^\s*|\s*$/, '').gsub(/\s+/,' '); end