Move urlRegex JS constant to main.js
This commit is contained in:
parent
bfcae2f79a
commit
088eb3391e
|
@ -52,7 +52,6 @@
|
||||||
<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 binurl;
|
var binurl;
|
||||||
var block = false;
|
var block = false;
|
||||||
var blockTitle = false;
|
var blockTitle = false;
|
||||||
|
|
|
@ -86,6 +86,8 @@ var last_popup_menu = null;
|
||||||
var last_popup_button = null;
|
var last_popup_button = null;
|
||||||
var lockLoadContent = false;
|
var lockLoadContent = false;
|
||||||
|
|
||||||
|
const 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;
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$.ajaxSetup({cache: false});
|
$.ajaxSetup({cache: false});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue