looksSensitive function

bool looksSensitive(
  1. String text
)

True for text the backend should never receive as written: anything identifiesSomeone covers, plus long numbers and amounts. Gates the legacy name, which was sent as written.

Implementation

bool looksSensitive(String text) =>
    identifiesSomeone(text) ||
    _longNumber.hasMatch(text) ||
    _currency.hasMatch(text);