Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Preserve negative sign on raw CSV values

Zach Gollwitzer79ca7e20397a
diff --git a/app/models/import.rb b/app/models/import.rb
index 314091fe..15646d44 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -145,6 +145,6 @@ class Import < ApplicationRecord
def sanitize_number(value)
return "" if value.nil?
- value.gsub(/[^\d.]/, "")
+ value.gsub(/[^\d.\-]/, "")
end
end