We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 890443c commit c4ee84bCopy full SHA for c4ee84b
Roadmap/16 - EXPRESIONES REGULARES/python/KevinED11.py
@@ -16,7 +16,7 @@ class SearchPattern(StrEnum):
16
17
18
@lru_cache
19
-def generic_searcher(pattern: str, text: str) -> IntTuple:
+def generic_searcher(pattern: SearchPattern, text: str) -> IntTuple:
20
return tuple(re.findall(pattern, text))
21
22
@@ -34,7 +34,7 @@ class ValidationPattern(StrEnum):
34
35
36
37
-def generic_validator(pattern: str, value: str) -> bool:
+def generic_validator(pattern: ValidationPattern, value: str) -> bool:
38
return re.search(pattern, value) is not None
39
40
0 commit comments