ananthakumaran/paisa

Feat: More Import operators

Closed this issue · 3 comments

As mentioned in Matrix, I would like to have access to more logic operators in the import.

Specifically:

  • contains / substring / startswith: My bank does a lot of "Transaction from ***", "Interest for ***"
  • greater than / less than: I do a lot of small transactions I would like to categorize into "general"
  • regexpExtract: Extract account numbers / recipients from fields

Where can learn about this logic operators?

@avinashkanaujiya checkout https://paisa.fyi/reference/import/ and https://handlebarsjs.com/

@brasilikum I have added the last 2 items to master, regarding the first item contains, substring, etc. can you use the regexpTest helper?

@ananthakumaran Yes, that works.
I think there is an argument to make for contains as a common enough usecase to have some syntactic sugar, but ultimately you should decide what best fits your vision for this project.

Thanks for the additions. I will be able to check them out later today