Fix description ref number parsing

This commit is contained in:
Alex Sherman 2020-09-08 13:34:16 +05:00
parent 39a21cb790
commit 14a319a4da

View file

@ -121,6 +121,7 @@ class BankTransaction < ApplicationRecord
end end
def ref_number_from_description def ref_number_from_description
/(\d{7})/.match(description)[0] match_data = /(\d{7})/.match(description)
match_data[0] if match_data.present?
end end
end end