From b00b9628a2459f2e31f5b06cda436f317eb316fc Mon Sep 17 00:00:00 2001 From: Ruben Bimberg <ruben.bimberg@mni.thm.de> Date: Thu, 23 Sep 2021 16:39:41 +0200 Subject: [PATCH] Implement fix for safari and firefox --- src/app/components/shared/tag-cloud/tag-cloud.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6b55daa01..54c9b00f5 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.ts +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.ts @@ -68,7 +68,7 @@ class TagComment implements CloudData { const transformationScaleKiller = /scale\([^)]*\)/; const transformationRotationKiller = /rotate\(([^)]*)\)/; -const maskedCharsRegex = /[“â€â€˜â€™â€žâ€šÂ«Â»â€¹â€ºã€Žã€ï¹ƒï¹„「ã€ï¹ï¹‚",《》〈〉'`#&]|((?<=\s)(lu|li’u)(?=\s))|(^lu(?=\s))|((?<=\s)li’u$)/gm; +const maskedCharsRegex = /[“â€â€˜â€™â€žâ€šÂ«Â»â€¹â€ºã€Žã€ï¹ƒï¹„「ã€ï¹ï¹‚",《》〈〉'`#&]|(\s(lu|li’u)(?=\s))|(^lu\s)|(\sli’u$)/gm; @Component({ selector: 'app-tag-cloud', -- GitLab