diff --git a/lib/defaults.js b/lib/defaults.js index db361c7..c4c409b 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -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 @@ -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:", }, ],