From da1c554782d739c14151d970d3a99aee4168dfe8 Mon Sep 17 00:00:00 2001 From: the_mcmurder Date: Fri, 25 Jun 2021 08:00:40 -0600 Subject: [PATCH] PR feedback --- src/verify-valid-input-format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/verify-valid-input-format.js b/src/verify-valid-input-format.js index 514db7f..fbe3c6e 100644 --- a/src/verify-valid-input-format.js +++ b/src/verify-valid-input-format.js @@ -32,7 +32,7 @@ exports.verifyInputFormatForServices = function (services) { errorsToReport.push( `Invalid import map in request body -- module with name '${moduleName}' does not have a string url` ); - } else if (!moduleName) { + } else if (!moduleName || moduleName.trim().length === 0) { // catch times where the name evaluates to false, such as "". errorsToReport.push( `Invalid module name -- module name '${moduleName}' is invalid`