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

@ -86,6 +86,8 @@ var last_popup_menu = null;
var last_popup_button = null;
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() {
$.ajaxSetup({cache: false});