Prevents linkPreview to match on URLs lead by an equal sign
- Prevent automatic link preview matching on inserted image BBCode
This commit is contained in:
parent
aba23abfaa
commit
895faddf82
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue