Implement citi scrape

This commit is contained in:
bel
2020-04-04 20:44:30 +00:00
parent 9f3f3dc08f
commit f5a40f7890
3 changed files with 110 additions and 43 deletions

View File

@@ -25,9 +25,10 @@ func (t *Transaction) String() string {
}
func NewTransaction(amount, account, date string, bank Bank) *Transaction {
regexp := regexp.MustCompile(`\s\s+`)
t := &Transaction{
Amount: amount,
Account: account,
Amount: regexp.ReplaceAllString(amount, " "),
Account: regexp.ReplaceAllString(account, " "),
Bank: bank,
Date: date,
}