MCPcopy
hub / github.com/InstaPy/InstaPy / has_any_letters

Function has_any_letters

instapy/util.py:2202–2209  ·  view source on GitHub ↗

Check if the text has any letters in it

(text)

Source from the content-addressed store, hash-verified

2200
2201
2202def has_any_letters(text):
2203 """Check if the text has any letters in it"""
2204 # result = re.search("[A-Za-z]", text) # works only with english letters
2205 result = any(
2206 c.isalpha() for c in text
2207 ) # works with any letters - english or non-english
2208
2209 return result
2210
2211
2212def save_account_progress(browser, username, logger):

Callers 1

text_analysisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected