MCPcopy Create free account
hub / github.com/codespell-project/codespell / _ignore_word_sub

Function _ignore_word_sub

codespell_lib/_codespell.py:865–871  ·  view source on GitHub ↗
(
    text: str,
    ignore_word_regex: Optional[Pattern[str]],
)

Source from the content-addressed store, hash-verified

863
864
865def _ignore_word_sub(
866 text: str,
867 ignore_word_regex: Optional[Pattern[str]],
868) -> str:
869 if ignore_word_regex:
870 text = ignore_word_regex.sub(" ", text)
871 return text
872
873
874def extract_words(

Callers 2

extract_wordsFunction · 0.85
extract_words_iterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…