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