lib/lucky_case.rb in lucky_case-1.0.0 vs lib/lucky_case.rb in lucky_case-1.0.1

- old
+ new

@@ -630,12 +630,12 @@ a = split_case_string string converted = nil loop do converted = '' a.each do |part| - converted += self.send CASES.keys.sample, part + converted += self.convert_case part, CASES.keys.sample, preserve_prefixed_underscores: preserve_prefixed_underscores end - converted = self.send CASES.keys.sample, converted + converted = self.convert_case converted, CASES.keys.sample, preserve_prefixed_underscores: preserve_prefixed_underscores break if converted != string && underscores_at_start(string) + converted != string end if preserve_prefixed_underscores underscores_at_start(string) + converted else \ No newline at end of file