Skip to content

Commit c8bd7e0

Browse files
fix basefield lint
1 parent 05795de commit c8bd7e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mindee/parsing/standard/base_field.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def format_for_display(in_str, max_col_size = nil)
9898
return '' if in_str.nil?
9999
return in_str if max_col_size.nil?
100100

101-
in_str = in_str.gsub(/[\n\r\t]/, "\n" => '\\n', "\r" => '\\r', "\t" => '\\t')
101+
in_str = in_str.gsub(%r{[\n\r\t]}, "\n" => '\\n', "\r" => '\\r', "\t" => '\\t')
102102
in_str.length <= max_col_size ? in_str : "#{in_str[0..max_col_size - 4]}..."
103103
end
104104
end

0 commit comments

Comments
 (0)