method
jlength
v1_8_7_72 -
Show latest stable
- Class:
String
jlength()public
No documentation available.
# File lib/jcode.rb, line 200
def jlength
self.gsub(/[^\Wa-zA-Z_\d]/, ' ').length
end 1Note
counts the length of non-uncode characters.
jlength counts the non-unicode characters in a string to its actual length. Otherwise rails treat as 5 characters.