app/models/wiki_words.rb in Pimki-1.3.092 vs app/models/wiki_words.rb in Pimki-1.4.092

- old
+ new

@@ -20,9 +20,9 @@ def self.separate(wiki_word, ignore_separation = false) if ignore_separation wiki_word else - wiki_word.gsub(/([a-z#{I18N_LOWER_CASE_LETTERS}]|[A-Z]{3,})([A-Z#{I18N_HIGHER_CASE_LETTERS}#{DIGITS}])/u, '\1 \2').gsub(/(\d+)/u, ' \1 ') + wiki_word.gsub(/([a-z#{I18N_LOWER_CASE_LETTERS}#{DIGITS}]|[A-Z#{I18N_HIGHER_CASE_LETTERS}]{2,})(?=[A-Z#{I18N_HIGHER_CASE_LETTERS}])/u, '\1 \2').gsub(/(\d+)/u, ' \1') end end end \ No newline at end of file