CSR-1454: minor tweak to avoid returning empty strings which were creating extra empty markup
This commit is contained in:
parent
4938e65379
commit
a05951b7ce
1 changed files with 1 additions and 1 deletions
|
|
@ -296,7 +296,7 @@ export function doesCopyContainTextLink(copy) {
|
|||
* @returns array of strings
|
||||
*/
|
||||
export function splitCopyOnCMSPlaceHolder(copy) {
|
||||
return copy.split(/{(.*?)}/g);
|
||||
return copy.split(/{(.*?)}/g).filter(str => str.length > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue