Skip to content

Commit

Permalink
Change default product name and shortDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Tai Ly committed Aug 16, 2024
1 parent 9a8976a commit 4c4eb79
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ const nameWithDot = (name) => {
return regexWithRemoval(name.charAt(0)) + name.slice(1, name.length).replace(/[^a-zA-Z0-9]/g,'.');
}

const nameWithSpaces = (name) => {
return regexWithRemoval(name.charAt(0)) + name.slice(1, name.length).replace(/[^a-zA-Z0-9]/g,' ');
}

/**
* Module containing default configuration for ORD Document.
* @module defaults
Expand All @@ -20,8 +24,8 @@ module.exports = {
products: (name) => [
{
ordId: `customer:product:${nameWithDot(name)}:`,
title: `ORD App Title for ${regexWithRemoval(name)}`,
shortDescription: " shortDescription for products",
title: nameWithSpaces(name),
shortDescription: nameWithSpaces(name),
vendor: "customer:vendor:customer:",
},
],
Expand Down

0 comments on commit 4c4eb79

Please sign in to comment.