Home | History | Annotate | Download | only in jinja2

Lines Matching refs:middle

20     '^(?P<lead>(?:%s)*)(?P<middle>.*?)(?P<trail>(?:%s)*)$' % (
205 lead, middle, trail = match.groups()
206 if middle.startswith('www.') or (
207 '@' not in middle and
208 not middle.startswith('http://') and
209 not middle.startswith('https://') and
210 len(middle) > 0 and
211 middle[0] in _letters + _digits and (
212 middle.endswith('.org') or
213 middle.endswith('.net') or
214 middle.endswith('.com')
216 middle = '<a href="http://%s"%s>%s</a>' % (middle,
217 nofollow_attr, trim_url(middle))
218 if middle.startswith('http://') or \
219 middle.startswith('https://'):
220 middle = '<a href="%s"%s>%s</a>' % (middle,
221 nofollow_attr, trim_url(middle))
222 if '@' in middle and not middle.startswith('www.') and \
223 not ':' in middle and _simple_email_re.match(middle):
224 middle = '<a href="mailto:%s">%s</a>' % (middle, middle)
225 if lead + middle + trail != word:
226 words[i] = lead + middle + trail