DanaDanger-unicode_madness 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|