lib/niceql.rb in niceql-0.1.6 vs lib/niceql.rb in niceql-0.1.7

- old
+ new

@@ -50,10 +50,10 @@ end def self.prettify_pg_err(err) err_line_num = err[/LINE \d+/][5..-1].to_i - start_sql_line = err.lines[3][/HINT|DETAIL/] ? 4 : 3 + start_sql_line = err.lines[3][/(HINT|DETAIL)/] ? 4 : 3 err_body = err.lines[start_sql_line..-1] err_line = StringColorize.colorize_err( err_body[err_line_num-1] ) err_body = err_body.join.gsub(/#{VERBS}/ ) { |verb| StringColorize.colorize_verb(verb) } err_body = err_body.gsub(STRINGS){ |str| StringColorize.colorize_str(str) }