Skip to content

Commit

Permalink
Revert "only match case-insensitively if the fs is"
Browse files Browse the repository at this point in the history
This reverts commit 468aa79.
  • Loading branch information
flying-sheep committed Apr 23, 2024
1 parent 66d9408 commit e604c2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/virtualenv/discovery/py_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import os
import re

from virtualenv.info import fs_is_case_sensitive

PATTERN = re.compile(r"^(?P<impl>[a-zA-Z]+)?(?P<version>[0-9.]+)?(?:-(?P<arch>32|64))?$")


Expand Down Expand Up @@ -84,7 +82,7 @@ def generate_re(self, *, windows: bool) -> re.Pattern:
# Try matching `direct` first, so the `direct` group is filled when possible.
return re.compile(
rf"(?P<impl>{impl})(?P<v>{version}){suffix}$",
flags=re.IGNORECASE if fs_is_case_sensitive() else 0,
flags=re.IGNORECASE,
)

@property
Expand Down

0 comments on commit e604c2e

Please sign in to comment.