From 77850bb04447bcc422f3d1effd49d391485d231b Mon Sep 17 00:00:00 2001 From: Roshni Naveena S Date: Mon, 15 Jul 2024 14:35:22 +0530 Subject: [PATCH] Update index.js --- lib/compile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compile/index.js b/lib/compile/index.js index 62c9188..7cdcdd6 100644 --- a/lib/compile/index.js +++ b/lib/compile/index.js @@ -20,7 +20,7 @@ module.exports = function processor(csn, options = {}) { } if (!cds.env?.export?.asyncapi?.application_namespace) { const packageJson = require(join(cds.root,'package.json')); - const appName = packageJson.name.replace(/\s/g, "-"); + const appName = packageJson.name.replace(/^[@]/, "").replace(/[@/]/g, "-"); envConf["application_namespace"] = `customer.${appName}` console.info(messages.APPLICATION_NAMESPACE); }