sqlalchemy/mako

quoted sections in tag not grouped correctly

zzzeek opened this issue · 1 comments

this will crash the Lexer due to the regex:

from mako.lexer import Lexer
template = "<%0" + '"' * 3000
Lexer(template).parse

Mike Bayer has proposed a fix for this issue in the main branch:

fix tag regexp to match quoted groups correctly https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/4053