linuxsoftware / ls.joyous

A calendar application for Wagtail
BSD 3-Clause "New" or "Revised" License
74 stars 35 forks source link

"Non-reversible reg-exp portion: '(?i'" exception #3

Closed acerix closed 5 years ago

acerix commented 5 years ago

Getting this on default install:

Exception Value: | Non-reversible reg-exp portion: '(?i'
/django/utils/regex_helper.py in normalize, line 126

Which is referring to this regex:

https://github.com/linuxsoftware/ls.joyous/blob/master/ls/joyous/models/calendar.py#L137

Error goes away if I remove (?i) from the regex.

acerix commented 5 years ago

In Django 2.1, (?i) (IGNORECASE) needs to be at the end of the regex:

https://stackoverflow.com/a/51773173

linuxsoftware commented 5 years ago

Fixed in 27c2fc65ff64a62d50facc6bf2894acf3432210e