Module: LDAP::Server::MatchingRule::IA5Trim

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

Overview

IA5 stuff. FIXME: What’s the correct way to ‘downcase’ UTF8 strings?

Instance Method Summary collapse

Instance Method Details

#normalize(x) ⇒ Object



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

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