Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / chatWebsite / helpers / wildcard-expressions.js
index c1927eb..782a00a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0624=['exports','replace','localhost','test','([\x5cw]+)'];(function(_0x4e3ac5,_0x18d402){var _0x3b408f=function(_0xd0214a){while(--_0xd0214a){_0x4e3ac5['push'](_0x4e3ac5['shift']());}};_0x3b408f(++_0x18d402);}(_0x0624,0x132));var _0x4062=function(_0x50b8dc,_0x1a6352){_0x50b8dc=_0x50b8dc-0x0;var _0x439b2a=_0x0624[_0x50b8dc];return _0x439b2a;};var escapeRegExp=require('../../../utils/misc')['escapeRegExp'];var URL=require('url')['URL'];function testWildcardValidity(_0x2d6840){let _0x144406=!![];try{new URL(_0x2d6840[_0x4062('0x0')]('*',_0x4062('0x1')));}catch(_0x29add8){_0x144406=![];}return _0x144406&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)[_0x4062('0x2')](_0x2d6840);}function testWebsiteWithWildcard(_0x4bb157,_0x553d08){let _0x353a85;const _0x2ec6dd=escapeRegExp(_0x4bb157)[_0x4062('0x0')]('\x5c*',_0x4062('0x3'));try{new URL(_0x4bb157[_0x4062('0x0')]('\x5c*','localhost'));_0x353a85=new RegExp(_0x2ec6dd)[_0x4062('0x2')](_0x553d08);}catch(_0x4b36f6){_0x353a85=![];}return _0x353a85;}module[_0x4062('0x4')]={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file
+var _0xad8a=['../../../utils/misc','escapeRegExp','url','URL','replace','localhost','([\x5cw]+)','test'];(function(_0x34a4ae,_0x3f8b45){var _0x8e1c44=function(_0x4a6b93){while(--_0x4a6b93){_0x34a4ae['push'](_0x34a4ae['shift']());}};_0x8e1c44(++_0x3f8b45);}(_0xad8a,0xb0));var _0xaad8=function(_0x1bdb5b,_0x777af5){_0x1bdb5b=_0x1bdb5b-0x0;var _0x268a6b=_0xad8a[_0x1bdb5b];return _0x268a6b;};var escapeRegExp=require(_0xaad8('0x0'))[_0xaad8('0x1')];var URL=require(_0xaad8('0x2'))[_0xaad8('0x3')];function testWildcardValidity(_0x158aa2){let _0x4848a7=!![];try{new URL(_0x158aa2[_0xaad8('0x4')]('*',_0xaad8('0x5')));}catch(_0x398fde){_0x4848a7=![];}return _0x4848a7&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)['test'](_0x158aa2);}function testWebsiteWithWildcard(_0x395f91,_0x2bddd0){let _0x22c799;const _0xeb5d15=escapeRegExp(_0x395f91)[_0xaad8('0x4')]('\x5c*',_0xaad8('0x6'));try{new URL(_0x395f91[_0xaad8('0x4')]('\x5c*',_0xaad8('0x5')));_0x22c799=new RegExp(_0xeb5d15)[_0xaad8('0x7')](_0x2bddd0);}catch(_0x3f1136){_0x22c799=![];}return _0x22c799;}module['exports']={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file