UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 552 B
{"version":3,"file":"format-email-subject.mjs","names":[],"sources":["../../../src/utils/helpers/format-email-subject.ts"],"sourcesContent":["/**\n * Prepends the brand name to the subject if it is provided.\n */\nconst formatEmailSubject = (subject: string, brandName?: string) => {\n\tconst brand = brandName?.trim();\n\tif (!brand) {\n\t\treturn subject;\n\t}\n\treturn `${brand} - ${subject}`;\n};\n\nexport default formatEmailSubject;\n"],"mappings":"AAGA,MAAM,GAAsB,EAAiB,IAAuB,CACnE,IAAM,EAAQ,GAAW,KAAK,EAI9B,OAHK,EAGE,GAAG,EAAM,KAAK,IAFb,CAGT"}