Skip to content

Commit 99f9a9a

Browse files
committed
Put regex flags first in expression
1 parent 0ccaed5 commit 99f9a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setupbase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def _translate_glob(pat):
659659
translated_parts.append(_translate_glob_part(part))
660660
os_sep_class = '[%s]' % re.escape(SEPARATORS)
661661
res = _join_translated(translated_parts, os_sep_class)
662-
return '{res}\\Z(?ms)'.format(res=res)
662+
return '(?ms){res}\\Z'.format(res=res)
663663

664664

665665
def _join_translated(translated_parts, os_sep_class):

0 commit comments

Comments
 (0)