]> git.ipfire.org Git - thirdparty/jinja.git/commit
Re-use existing regex for whitespace detection 1368/head
authorMatěj Volf <mat.volfik@gmail.com>
Wed, 10 Mar 2021 17:07:44 +0000 (18:07 +0100)
committerDavid Lord <davidism@gmail.com>
Tue, 8 Mar 2022 15:06:55 +0000 (07:06 -0800)
commit5182b64d1c0f56725c1e7739e748dd3d46ffdba9
tree02f679895012626c248be9318e7ca2dd8c762a3f
parenta12ad40d56302c90ccb72471ff34ad320c070ed0
Re-use existing regex for whitespace detection

Whitespace regex could also detect newlines, but since we're only
matching the part from last newline, it's safer (and more readable)
to use it here.
src/jinja2/lexer.py