Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatWebsite / helpers / wildcard-expressions.js
index b2f1a17..7cacc8b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x24bb=['test','exports','../../../utils/misc','url','localhost','replace','([\x5cw]+)'];(function(_0x1dece9,_0x2cd405){var _0x449378=function(_0x13b0ec){while(--_0x13b0ec){_0x1dece9['push'](_0x1dece9['shift']());}};_0x449378(++_0x2cd405);}(_0x24bb,0x19f));var _0xb24b=function(_0x35d182,_0x546ed3){_0x35d182=_0x35d182-0x0;var _0x4eb48a=_0x24bb[_0x35d182];return _0x4eb48a;};var escapeRegExp=require(_0xb24b('0x0'))['escapeRegExp'];var URL=require(_0xb24b('0x1'))['URL'];function testWildcardValidity(_0x2f062f){var _0x10f8ed=!![];try{new URL(_0x2f062f['replace']('*',_0xb24b('0x2')));}catch(_0x48ff68){_0x10f8ed=![];}return _0x10f8ed&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)['test'](_0x2f062f);}function testWebsiteWithWildcard(_0x2af39f,_0x4062b5){var _0x45588a;var _0x51e19e=escapeRegExp(_0x2af39f['trim']()[_0xb24b('0x3')](/\/$/,''))[_0xb24b('0x3')]('\x5c*',_0xb24b('0x4'));try{new URL(_0x2af39f[_0xb24b('0x3')]('\x5c*',_0xb24b('0x2')));_0x45588a=new RegExp(_0x51e19e)[_0xb24b('0x5')](_0x4062b5);}catch(_0x268f76){_0x45588a=![];}return _0x45588a;}module[_0xb24b('0x6')]={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file
+var _0xa76e=['replace','exports','escapeRegExp','url','localhost','test'];(function(_0x137d0c,_0x133d7e){var _0x51f5ea=function(_0x28b1e6){while(--_0x28b1e6){_0x137d0c['push'](_0x137d0c['shift']());}};_0x51f5ea(++_0x133d7e);}(_0xa76e,0xfe));var _0xea76=function(_0x4fde08,_0x463a36){_0x4fde08=_0x4fde08-0x0;var _0x12e725=_0xa76e[_0x4fde08];return _0x12e725;};var escapeRegExp=require('../../../utils/misc')[_0xea76('0x0')];var URL=require(_0xea76('0x1'))['URL'];function testWildcardValidity(_0x5d448a){var _0x3bfa22=!![];try{new URL(_0x5d448a['replace']('*',_0xea76('0x2')));}catch(_0x368f89){_0x3bfa22=![];}return _0x3bfa22&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)[_0xea76('0x3')](_0x5d448a);}function testWebsiteWithWildcard(_0x4ed094,_0x273c1b){var _0x48ff4f;var _0x337097=escapeRegExp(_0x4ed094['trim']()[_0xea76('0x4')](/\/$/,''))[_0xea76('0x4')]('\x5c*','([\x5cw]+)');try{new URL(_0x4ed094['replace']('\x5c*',_0xea76('0x2')));_0x48ff4f=new RegExp(_0x337097)[_0xea76('0x3')](_0x273c1b);}catch(_0x1c6723){_0x48ff4f=![];}return _0x48ff4f;}module[_0xea76('0x5')]={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file