diff --git a/CHANGELOG.md b/CHANGELOG.md index 147b944405..f960aa4aec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa ## Master +- Environment variables now have to **start** with `YARN_` (instead of just contain it) to be considered + + [#6518](https://github.com/yarnpkg/yarn/pull/6518) - [**Michael Gmelin**](https://blog.grem.de) + - Fixes the `extensions` option when used by `resolveRequest` [#6479](https://github.com/yarnpkg/yarn/pull/6479) - [**Maƫl Nison**](https://twitter.com/arcanis) diff --git a/src/registries/base-registry.js b/src/registries/base-registry.js index 87cdfce385..1f55448a23 100644 --- a/src/registries/base-registry.js +++ b/src/registries/base-registry.js @@ -151,7 +151,7 @@ export default class BaseRegistry { let key = envKey.toLowerCase(); // only accept keys prefixed with the prefix - if (key.indexOf(prefix.toLowerCase()) < 0) { + if (key.indexOf(prefix.toLowerCase()) !== 0) { continue; }