Merge pull request #7523 from MrPetovan/bug/7428-linkPreview-photo-browser
Prevents linkPreview to match on URLs lead by an equal sign
This commit is contained in:
commit
e7c3d327cc
|
@ -52,7 +52,7 @@
|
||||||
<div class="clear"></div>\
|
<div class="clear"></div>\
|
||||||
<hr class="previewseparator">';
|
<hr class="previewseparator">';
|
||||||
var text;
|
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 binurl;
|
||||||
var block = false;
|
var block = false;
|
||||||
var blockTitle = false;
|
var blockTitle = false;
|
||||||
|
|
Loading…
Reference in a new issue