Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Tai Ly committed Aug 22, 2024
1 parent 4c4eb79 commit 03fbeab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
{
ordId: `customer:product:${nameWithDot(name)}:`,
title: nameWithSpaces(name),
shortDescription: nameWithSpaces(name),
shortDescription: "Description for " + nameWithSpaces(name),
vendor: "customer:vendor:customer:",
},
],
Expand Down
2 changes: 1 addition & 1 deletion lib/ord.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fInitializeGlobal = (csn) => {
const capNamespace = csn.namespace;
// namespace variable value if present in cdsrc.json take it there or else from package.json
//if cdsrc.json does not have applicationNamespace, then use just the namespace
const namespace = cds.env["ord"]?.namespace || packageName.replace(/@/,'').replace(/\//g,'');
const namespace = cds.env["ord"]?.namespace || packageName.replace(/[^\w\/]/g, "").replace(/\//, ".");

Check failure on line 36 in lib/ord.js

View workflow job for this annotation

GitHub Actions / lint

Unnecessary escape character: \/
const applicationNamespace = cds.env?.export?.asyncapi?.applicationNamespace;

if (applicationNamespace && fGetNamespaceComponents(namespace) !== fGetNamespaceComponents(applicationNamespace)) {
Expand Down

0 comments on commit 03fbeab

Please sign in to comment.