scrub method

  1. @override
String scrub(
  1. String input
)
override

Implementation

@override
String scrub(String input) => input
    .replacingOccurrences(
      matchingPattern: _datePattern,
      replacementProvider: (match) {
        _index++;
        return '<date$_index>';
      },
    )
    .trim();