lib/ting/tones/supernum.rb in ting-0.3.0 vs lib/ting/tones/supernum.rb in ting-0.9.0

- old
+ new

@@ -10,10 +10,10 @@ def add_tone(syll,tone) syll + GLYPHS[normalize(tone) % 5] end def peek_tone(syll) - if t = GLYPHS.index(syll.uchars[-1]) + if t = GLYPHS.index(syll.chars.last) return t end return NEUTRAL_TONE end