Module: Nexmo::GSM7
- Defined in:
- lib/nexmo/gsm7.rb
Constant Summary collapse
- CHARACTERS =
"\n\f\r !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~ ¡£¤¥§¿ÄÅÆÉÑÖØÜßàäåæçèéìñòöøùüΓΔΘΛΞΠΣΦΨΩ€"
- REGEXP =
/\A[#{Regexp.escape(CHARACTERS)}]*\z/
Class Method Summary collapse
Class Method Details
.encoded?(string) ⇒ Boolean
9 10 11 |
# File 'lib/nexmo/gsm7.rb', line 9 def self.encoded?(string) REGEXP =~ string end |