Module: LDAP::Server::MatchingRule::IA5Downcase

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

Instance Method Summary collapse

Instance Method Details

#normalize(x) ⇒ Object



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

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