@finema/finework-layer 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.9](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.8...1.0.9) (2026-03-10)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* escape special characters in slug pattern for message formatting ([c98d77e](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/c98d77ead0c68563306b1d59216dd99d06d949c2))
|
|
8
|
+
|
|
3
9
|
## [1.0.8](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.7...1.0.8) (2026-03-10)
|
|
4
10
|
|
|
5
11
|
### Bug Fixes
|
|
@@ -197,8 +197,8 @@ const getMessage = (item: INotificationItem): string => {
|
|
|
197
197
|
if (item.data) {
|
|
198
198
|
Object.entries(item.data).forEach(([key, value]) => {
|
|
199
199
|
if (key.endsWith('_slug') && typeof value === 'string' && value) {
|
|
200
|
-
|
|
201
|
-
const slugPattern = new RegExp(
|
|
200
|
+
const escapedValue = value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
|
201
|
+
const slugPattern = new RegExp(escapedValue, 'g')
|
|
202
202
|
|
|
203
203
|
message = message.replace(slugPattern, `<span class="text-primary font-medium">${value}</span>`)
|
|
204
204
|
}
|