diff --git a/lib/datasource/docker/index.ts b/lib/datasource/docker/index.ts
index 2ca7ef89000369e80d1d43d024220be67208c06c..e7e96a36ed853b60857ac5d757c5bdbf20142894 100644
--- a/lib/datasource/docker/index.ts
+++ b/lib/datasource/docker/index.ts
@@ -425,13 +425,13 @@ export function getConfigResponseBeforeRedirectHook(options: any): void {
     delete options.headers.authorization;
   }
 
-  if (
-    options.href?.includes('blob.core.windows.net') &&
-    options.headers?.authorization
-  ) {
-    // docker registry is hosted on Azure blob, redirect url includes authentication.
-    // eslint-disable-next-line no-param-reassign
-    delete options.headers.authorization;
+  if (options.href && options.headers?.authorization) {
+    const { host } = URL.parse(options.href);
+    if (host && host.endsWith('blob.core.windows.net')) {
+      // docker registry is hosted on Azure blob, redirect url includes authentication.
+      // eslint-disable-next-line no-param-reassign
+      delete options.headers.authorization;
+    }
   }
 }
 
diff --git a/lib/versioning/npm/range.ts b/lib/versioning/npm/range.ts
index 94bfeb21eeb948d5c2e8440e0f753ebe96479b41..2e0428ef4abe05cee0b529fc1f89032195936295 100644
--- a/lib/versioning/npm/range.ts
+++ b/lib/versioning/npm/range.ts
@@ -173,7 +173,7 @@ export function getNewValue({
       res = `<${toVersionMajor + 1}`;
     }
     if (currentValue.includes('< ')) {
-      res = res.replace('<', '< ');
+      res = res.replace(/</g, '< ');
     }
     return res;
   }
diff --git a/lib/workers/repository/extract/manager-files.ts b/lib/workers/repository/extract/manager-files.ts
index 8cc0354b42c009c571f5edf36866c3ed2483c9be..9c01a60578892db9643b584071a6137df5539e6b 100644
--- a/lib/workers/repository/extract/manager-files.ts
+++ b/lib/workers/repository/extract/manager-files.ts
@@ -1,3 +1,4 @@
+import is from '@sindresorhus/is';
 import {
   extractAllPackageFiles,
   extractPackageFile,
@@ -24,7 +25,7 @@ export async function getManagerPackageFiles(config): Promise<PackageFile[]> {
   fileList = filterIgnoredFiles(fileList, ignorePaths);
   const matchedFiles = getMatchingFiles(fileList, manager, config.fileMatch);
   // istanbul ignore else
-  if (matchedFiles && matchedFiles.length) {
+  if (is.nonEmptyArray(matchedFiles)) {
     logger.debug(
       `Matched ${
         matchedFiles.length