pub fn apply_transaction_rename_rules(
    transaction: &mut Annotated<String>,
    rules: &[TransactionNameRule]
)
Expand description

Applies the rule if any found to the transaction name.

It find the first rule matching the criteria:

  • source matchining the one provided in the rule sorce
  • rule hasn’t epired yet
  • glob pattern matches the transaction name

Note: we add / at the end of the transaction name if there isn’t one, to make sure that patterns like /<something>/*/** where we have ** at the end are a match.