filterspec.normalize_bare()

Usage

Source

filterspec.normalize_bare(
    text,
    strip_trailing=TRAILING_PUNCT,
)