DanaDanger-unicode_madness 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/unicode_madness/unicode_string.rb +1 -1
- metadata +1 -1
@@ -91,7 +91,7 @@ class UnicodeString < String
|
|
91
91
|
# length of the string.
|
92
92
|
def uindex_to_index(char_index)
|
93
93
|
return nil if char_index.nil?
|
94
|
-
if char_index < 0 || char_index >
|
94
|
+
if char_index < 0 || char_index > jlength
|
95
95
|
raise RangeError, 'index out of range'
|
96
96
|
end
|
97
97
|
|