mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Fix description ref number parsing
This commit is contained in:
parent
39a21cb790
commit
14a319a4da
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue