MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / check_contain_url

Function check_contain_url

src/codetext/clean/noise_removal.py:725–730  ·  view source on GitHub ↗
(docstring: str)

Source from the content-addressed store, hash-verified

723
724
725def 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

Callers

nothing calls this directly

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected