1
1
Fork 0

Move urlRegex JS constant to main.js

This commit is contained in:
Hypolite Petovan 2019-10-11 15:27:05 -04:00
parent bfcae2f79a
commit 088eb3391e
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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});