mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix elipsis links. For #93
This commit is contained in:
parent
c343dcdadc
commit
e95f2e7755
2
webroot/vendor/autolink.js
vendored
2
webroot/vendor/autolink.js
vendored
@ -1,6 +1,6 @@
|
||||
const re = {
|
||||
http: /.*?:\/\//g,
|
||||
url: /(\s|^)((https?|ftp):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\w-\/\?\=\#\.])*/gi,
|
||||
url: /(\s|^)((https?|ftp):\/\/)?[\da-z\d:%._\+~#=-]{2,256}\.[a-z]{2,6}\b([\da-z:%_\+.~#?&//=-]*)/gi,
|
||||
image: /\.(jpe?g|png|gif)$/,
|
||||
email: /(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/gi,
|
||||
cloudmusic: /http:\/\/music\.163\.com\/#\/song\?id=(\d+)/i,
|
||||
|
Loading…
x
Reference in New Issue
Block a user