diff --git a/src/app/components/shared/tag-cloud/tag-cloud.component.ts b/src/app/components/shared/tag-cloud/tag-cloud.component.ts index 40e8a1c181e445cf3a971cdbf73c206687c2e1be..341f852dc30712862869c166f8b34c0f5bf74487 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.ts +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.ts @@ -67,7 +67,7 @@ class TagComment implements CloudData { const transformationScaleKiller = /scale\([^)]*\)/; const transformationRotationKiller = /rotate\(([^)]*)\)/; -const quotationMarksRegex = /[“â€â€˜â€™â€žâ€šÂ«Â»â€¹â€ºã€Žã€ï¹ƒï¹„「ã€ï¹ï¹‚",《》〈〉'`]|((?<=\s)(lu|li’u)(?=\s))|(^lu(?=\s))|((?<=\s)li’u$)/gm; +const maskedCharsRegex = /[“â€â€˜â€™â€žâ€šÂ«Â»â€¹â€ºã€Žã€ï¹ƒï¹„「ã€ï¹ï¹‚",《》〈〉'`#&]|((?<=\s)(lu|li’u)(?=\s))|(^lu(?=\s))|((?<=\s)li’u$)/gm; @Component({ selector: 'app-tag-cloud', @@ -308,7 +308,7 @@ export class TagCloudComponent implements OnInit, OnDestroy, AfterContentInit { if (rotation === null || this._currentSettings.randomAngles) { rotation = Math.floor(Math.random() * 30 - 15); } - const filteredTag = tag.replace(quotationMarksRegex, '').trim(); + const filteredTag = tag.replace(maskedCharsRegex, '').trim(); newElements.push(new TagComment(filteredTag, tag, rotation, tagData.weight, tagData, newElements.length)); } }