Skip to content

Commit

Permalink
fix: consistant env name regex (#11810)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhang authored Jun 12, 2024
1 parent a398979 commit 69c7013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fx-core/src/component/utils/envUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class EnvUtil {
}

extractEnvNameFromFileName(inputFileName: string): string | undefined {
const regex = /^\.env\.(\w+)$/;
const regex = /^\.env\.([\w\d-_]+)$/;
const matches = inputFileName.match(regex);
const envName = matches && matches[1];
return envName || undefined;
Expand Down

0 comments on commit 69c7013

Please sign in to comment.