mediacube-ui 0.1.364 → 0.1.366

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.366](https://github.com/MediaCubeCo/mcui/compare/v0.1.365...v0.1.366) (2025-03-18)
6
+
7
+ ### [0.1.365](https://github.com/MediaCubeCo/mcui/compare/v0.1.364...v0.1.365) (2025-03-17)
8
+
5
9
  ### [0.1.364](https://github.com/MediaCubeCo/mcui/compare/v0.1.363...v0.1.364) (2025-03-10)
6
10
 
7
11
  ### [0.1.363](https://github.com/MediaCubeCo/mcui/compare/v0.1.362...v0.1.363) (2025-03-05)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.364",
3
+ "version": "0.1.366",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -127,6 +127,8 @@ export default {
127
127
  commentWithLinks() {
128
128
  const regExp = /((http|https):\/\/)?(([0-9a-zA-Zа-яА-Я.-]*)\.([a-zA-Zа-яА-Я]+[^\s,.;:'"\])]+)(\/[^ ,.;\/\])]*)?)/gi
129
129
  return this.comment.content.replace(regExp, match => {
130
+ // Проверяем, является ли match файлом
131
+ if (/\.(jpg|jpeg|png|svg|pdf|csv|webp|doc|docx)$/i.test(match)) return match
130
132
  const url = /^http/.test(match) ? match : `http://${match}`
131
133
  return `<a class="mc-chat-comment__link" href='${url}' target="_blank">${match.trim()}</a>`
132
134
  })