'Add Fail2Ban\'s default set of date templates.'

def addDefaultTemplate(self, filterTemplate=None, preMatch=None):

    ignoreDup = (len(self.__templates) > 0)
    for template in DateDetector._defCache.templates:
        if ((filterTemplate is not None) and (not filterTemplate(template))):
            continue
        if (preMatch is not None):
            template = _getAnchoredTemplate(template, wrap=(lambda s: RE_DATE_PREMATCH.sub((lambda m: s), preMatch)))
        self._appendTemplate(template, ignoreDup=ignoreDup)
