• R/O
  • SSH

pyrepo: Commit

Library with common primitives for Python_ programming language


Commit MetaInfo

Revision8610de08277c91f3fea2989bd00fd314725c0530 (tree)
Time2023-10-23 16:05:01
AuthorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

extra_strings: Added hasDigits()

Change Summary

Incremental Difference

diff -r 44cfca5e74e4 -r 8610de08277c extra_strings.py
--- a/extra_strings.py Sat Oct 21 13:07:18 2023 +0300
+++ b/extra_strings.py Mon Oct 23 10:05:01 2023 +0300
@@ -21,6 +21,9 @@
2121 def hasCyrillic(text):
2222 return bool(re.search('[а-яА-ЯёЁ]', text))
2323
24+def hasDigits(text):
25+ return bool(re.search('[0-9]', text))
26+
2427
2528 def getUndefinedArticle(word):
2629 if isVowel(word[0]):
Show on old repository browser