Skip to content

matcher: avoid building invalid regex with relre (issue6759)

Pierre-Yves David requested to merge topic/stable/regrex into branch/stable

Python 3.11 is now enforcing that flag must be at the beginning of the regex

This creates a serious regression for people using Python 3.11 with an hgignore using flag in a "relre" pattern.

We now detect any flags in such pattern and "prepend" our ".*" pattern after them.

Edited by Pierre-Yves David

Merge request reports