Commit 92518e53 authored by jrgissing's avatar jrgissing
Browse files

Revert "spelling: attempt add file paths to false positives"

This reverts commit 0c4af8b8.
parent 60a808d2
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -312,6 +312,3 @@ if spelling_spec:

    spelling_lang='en_US'
    spelling_word_list_filename='false_positives.txt'

    from custom_filters import PathFilter
    spelling_filters = [PathFilter]
+0 −9
Original line number Diff line number Diff line
class PathFilter(Filter):
    r"""Filter skipping over simple file paths
    """
    _DOC_ERRORS = ["zA"]
    _pattern = re.compile(r"\/[^\s].*")
    def _skip(self,word):
        if self._pattern.match(word):
            return True
        return False