mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 21:59:38 +02:00
Preserve negative sign on raw CSV values
This commit is contained in:
parent
34ebd96c4c
commit
79ca7e2039
1 changed files with 1 additions and 1 deletions
|
@ -145,6 +145,6 @@ class Import < ApplicationRecord
|
||||||
|
|
||||||
def sanitize_number(value)
|
def sanitize_number(value)
|
||||||
return "" if value.nil?
|
return "" if value.nil?
|
||||||
value.gsub(/[^\d.]/, "")
|
value.gsub(/[^\d.\-]/, "")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue