Crown-Commercial-Service / govuk-frontend-jinja

Tools to use the GOV.UK Design System with Python webapps that use Jinja2 and Flask 🐍
MIT License
9 stars 6 forks source link

Regex for inline if-expression is weak #7

Open lfdebrux opened 5 years ago

lfdebrux commented 5 years ago

Currently our inline if-expression regex only handles instances where the test and result are the same, i.e. (item if item).

However there are one or two cases which don't fit this pattern.