1
0
Fork 0
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:
Zach Gollwitzer 2024-10-10 18:57:00 -04:00
parent 34ebd96c4c
commit 79ca7e2039

View file

@ -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