mediacube-ui 0.1.256 → 0.1.258
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.258](https://github.com/MediaCubeCo/mcui/compare/v0.1.257...v0.1.258) (2024-04-23)
|
|
6
|
+
|
|
7
|
+
### [0.1.257](https://github.com/MediaCubeCo/mcui/compare/v0.1.256...v0.1.257) (2024-04-22)
|
|
8
|
+
|
|
5
9
|
### [0.1.256](https://github.com/MediaCubeCo/mcui/compare/v0.1.255...v0.1.256) (2024-04-11)
|
|
6
10
|
|
|
7
11
|
### [0.1.255](https://github.com/MediaCubeCo/mcui/compare/v0.1.254...v0.1.255) (2024-04-11)
|
package/package.json
CHANGED
|
@@ -125,7 +125,7 @@ export default {
|
|
|
125
125
|
return nl2br ? nl2br(this.commentWithLinks) : this.commentWithLinks
|
|
126
126
|
},
|
|
127
127
|
commentWithLinks() {
|
|
128
|
-
const regExp = /((http|https):\/\/)?(([0-9a-zA-Zа-яА-Я.-]*)\.([a-zA-Zа-яА-Я]+[^\s
|
|
128
|
+
const regExp = /((http|https):\/\/)?(([0-9a-zA-Zа-яА-Я.-]*)\.([a-zA-Zа-яА-Я]+[^\s,.;:'"\])]+)(\/[^ ,.;\/\])]*)?)/gi
|
|
129
129
|
return this.comment.content.replace(regExp, match => {
|
|
130
130
|
const url = /^http/.test(match) ? match : `http://${match}`
|
|
131
131
|
return `<a class="mc-chat-comment__link" href='${url}' target="_blank">${match.trim()}</a>`
|