lib/humanize/locales/id.rb in humanize-2.5.1 vs lib/humanize/locales/id.rb in humanize-3.0.0

- old
+ new

@@ -26,11 +26,11 @@ parts << grouping end def correct_one_thousand(parts) lots = LOTS.drop(2) - wrong_1000_re = /(?<=#{lots.join(" |")} )\s*satu ribu|^satu ribu/ + wrong_1000_re = /(?<=#{lots.join(' |')} )\s*satu ribu|^satu ribu/ parts = parts.reverse.join(" ").sub(wrong_1000_re, 'seribu') - parts.split(" ").reverse + parts.split.reverse end end end