MCPcopy Index your code
hub / github.com/clips/pattern / search

Method search

pattern/web/feed/feedparser.py:249–255  ·  view source on GitHub ↗
(self, target, index=0)

Source from the content-addressed store, hash-verified

247 # parser to find angle brackets embedded in element attributes.
248 self.endbracket = re.compile('''([^'"<>]|"[^"]*"(?=>|/|\s|\w+=)|'[^']*'(?=>|/|\s|\w+=))*(?=[<>])|.*?(?=[<>])''')
249 def search(self, target, index=0):
250 match = self.endbracket.match(target, index)
251 if match is not None:
252 # Returning a new object in the calling thread's context
253 # resolves a thread-safety.
254 return EndBracketMatch(match)
255 return None
256 class EndBracketMatch:
257 def __init__(self, match):
258 self.match = match

Callers 8

lookslikehtmlMethod · 0.45
_sync_author_detailMethod · 0.45
findVCardsMethod · 0.45
findEnclosuresMethod · 0.45
parse_commentMethod · 0.45
_parse_date_perforceFunction · 0.45
_toUTF8Function · 0.45
_stripDoctypeFunction · 0.45

Calls 2

EndBracketMatchClass · 0.85
matchMethod · 0.45

Tested by

no test coverage detected