Skip to content

Fix deprecation warning in CsvBuilder

Stan Hu requested to merge sh-fix-csv-builder-deprecations into master

Previously the excel_sanitize method attempted to perform a regex match against a number, resulting in this deprecation warning:

warning: deprecated Object#=~ is called on Integer; it always returns nil

We fix this by skipping the sanitize step if the value is a numeric.

Edited by Stan Hu

Merge request reports

Loading