We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f8af1 commit 0e442a8Copy full SHA for 0e442a8
src/utils.ts
@@ -150,7 +150,7 @@ export class Utils {
150
const envMatchedVariables: {[key: string]: string} = {};
151
for (const [k, v] of Object.entries(variables)) {
152
for (const entry of v.environments) {
153
- if (entry.regexp.exec(environment?.name ?? "") || entry.regexp.source === ".*") {
+ if (environment?.name.match(entry.regexp) || entry.regexp.source === ".*") {
154
if (fileVariablesDir != null && v.type === "file" && !entry.fileSource) {
155
envMatchedVariables[k] = `${fileVariablesDir}/${k}`;
156
fs.mkdirpSync(`${fileVariablesDir}`);
0 commit comments