(docstring: str)
| 723 | |
| 724 | |
| 725 | def check_contain_url(docstring: str): |
| 726 | pattern = re.compile(r'(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])', flags=re.I) |
| 727 | |
| 728 | if pattern.search(docstring): |
| 729 | return True |
| 730 | return False |
| 731 | |
| 732 | # =================== End checking ====================== |
| 733 |