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.
--
Ticket URL: <https://code.djangoproject.com/ticket/32990>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:1>
* owner: nobody => gtwohig
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:2>
* has_patch: 0 => 1
Comment:
Submitted [https://github.com/django/django/pull/14748 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"c99aaf14eef2a18b27bc7c2f2b17ae425ca2be49" c99aaf14]:
{{{
#!CommitTicketReference repository=""
revision="c99aaf14eef2a18b27bc7c2f2b17ae425ca2be49"
Refs #32990 -- Added tests for DebugLexer/Lexer.tokenize().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"fc2bd40fc76996306efc1f8de581708d8c5a2943" fc2bd40f]:
{{{
#!CommitTicketReference repository=""
revision="fc2bd40fc76996306efc1f8de581708d8c5a2943"
Fixed #32990 -- Simplified and optimized tag regex.
Thanks Chris Jerdonek for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32990#comment:6>