Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: fixes condition identifying rich text content
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Jan 22, 2020
1 parent 9ec7a54 commit c5d45fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/id-translate-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class IdTranslateHelper {
} else {
for (const key of Object.keys(data)) {
const val = (data as any)[key];
if (typeof val === 'string' && val.startsWith('<p>')) {
if (typeof val === 'string' && val.startsWith('<') && val.endsWith('>')) {
// replace string with updated one
const newData = this.replaceIdsInRichText(val, items);
data[key] = newData;
Expand Down

0 comments on commit c5d45fd

Please sign in to comment.