id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 32990,Test the tag_re regex in template/base.py instead of evaluating it every time,Chris Jerdonek,gtwohig,"I noticed that `template/base.py` has a somewhat complicated regex string at the top involving six calls to `re.escape()` that it needs to evaluate every time: https://github.com/django/django/blob/4fe3774c729f3fd5105b3001fe69a70bdca95ac3/django/template/base.py#L90-L93 A more efficient approach would be to define a hard-coded `_TAG_RE_REGEX` regex at the top that is the result of that substitution, and add a test checking that it matches the result of calling `re.escape()` six times, etc. That would eliminate the need to do the substitution at runtime. ",Cleanup/optimization,closed,Template system,dev,Normal,fixed,,,Ready for checkin,1,0,0,0,1,0