Implement citi scrape
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user