Skip to content

Commit

Permalink
Merge pull request #640 from singingwolfboy/patch-1
Browse files Browse the repository at this point in the history
Move global flags to start of regex
  • Loading branch information
vidartf authored Nov 24, 2022
2 parents 4bc7ae2 + f67a809 commit f503763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def _translate_glob(pat):
translated_parts.append(_translate_glob_part(part))
os_sep_class = '[%s]' % re.escape(SEPARATORS)
res = _join_translated(translated_parts, os_sep_class)
return '{res}\\Z(?ms)'.format(res=res)
return '(?ms){res}\\Z'.format(res=res)


def _join_translated(translated_parts, os_sep_class):
Expand Down

0 comments on commit f503763

Please sign in to comment.