kopia lustrzana https://github.com/friendica/friendica
Merge pull request #7523 from MrPetovan/bug/7428-linkPreview-photo-browser
Prevents linkPreview to match on URLs lead by an equal signpull/7525/head
commit
e7c3d327cc
|
@ -52,7 +52,7 @@
|
|||
<div class="clear"></div>\
|
||||
<hr class="previewseparator">';
|
||||
var text;
|
||||
var urlRegex = /(https?\:\/\/|\s)[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})(\/+[a-z0-9_.\:\;-]*)*(\?[\&\%\|\+a-z0-9_=,\.\:\;-]*)?([\&\%\|\+&a-z0-9_=,\:\;\.-]*)([\!\#\/\&\%\|\+a-z0-9_=,\:\;\.-]*)}*/i;
|
||||
var urlRegex = /(?<!=)(https?\:\/\/|\s)[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})(\/+[a-z0-9_.\:\;-]*)*(\?[\&\%\|\+a-z0-9_=,\.\:\;-]*)?([\&\%\|\+&a-z0-9_=,\:\;\.-]*)([\!\#\/\&\%\|\+a-z0-9_=,\:\;\.-]*)}*/i;
|
||||
var binurl;
|
||||
var block = false;
|
||||
var blockTitle = false;
|
||||
|
|
Ładowanie…
Reference in New Issue