Skip to content

Commit 1a5c76f

Browse files
author
Kartik Raj
committed
Reverting regex approach
1 parent a8915f5 commit 1a5c76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/pythonEnvironments/discovery/locators/services/pipEnvHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function getPipfileIfGlobal(interpreterPath: string): Promise<string | und
108108
// |__ Pipfile <--- check if Pipfile exists here and return it
109109
// The name of the project (directory where Pipfile resides) is used as a prefix in the environment folder
110110
const envFolderName = path.basename(envFolder);
111-
if (envFolderName.match(new RegExp(`^${path.basename(projectDir)}-[0-9a-fA-F]+$`)) === null) {
111+
if (!envFolderName.startsWith(`${path.basename(projectDir)}-`)) {
112112
return undefined;
113113
}
114114

0 commit comments

Comments
 (0)