Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / chatWebsite / helpers / wildcard-expressions.js
index 8a9d09c..bea9790 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3746=['exports','../../../utils/misc','escapeRegExp','URL','replace','test','trim','([\x5cw]+)'];(function(_0x3747ae,_0x408e61){var _0x339035=function(_0x83be87){while(--_0x83be87){_0x3747ae['push'](_0x3747ae['shift']());}};_0x339035(++_0x408e61);}(_0x3746,0xa9));var _0x6374=function(_0x234a13,_0x3bf34e){_0x234a13=_0x234a13-0x0;var _0x118608=_0x3746[_0x234a13];return _0x118608;};var escapeRegExp=require(_0x6374('0x0'))[_0x6374('0x1')];var URL=require('url')[_0x6374('0x2')];function testWildcardValidity(_0x53bd33){var _0xf9a32f=!![];try{new URL(_0x53bd33[_0x6374('0x3')]('*','localhost'));}catch(_0x574f9c){_0xf9a32f=![];}return _0xf9a32f&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)[_0x6374('0x4')](_0x53bd33);}function testWebsiteWithWildcard(_0x3db7d3,_0x44d8f9){var _0x3ef994;var _0xa74f70=escapeRegExp(_0x3db7d3[_0x6374('0x5')]()[_0x6374('0x3')](/\/$/,''))[_0x6374('0x3')]('\x5c*',_0x6374('0x6'));try{new URL(_0x3db7d3[_0x6374('0x3')]('\x5c*','localhost'));_0x3ef994=new RegExp(_0xa74f70)[_0x6374('0x4')](_0x44d8f9);}catch(_0x5bd695){_0x3ef994=![];}return _0x3ef994;}module[_0x6374('0x7')]={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file
+var _0x1280=['replace','localhost','test','([\x5cw]+)','../../../utils/misc','url','URL'];(function(_0x300860,_0x509371){var _0x2094ad=function(_0x2090a2){while(--_0x2090a2){_0x300860['push'](_0x300860['shift']());}};_0x2094ad(++_0x509371);}(_0x1280,0xac));var _0x0128=function(_0x559a80,_0x3d193d){_0x559a80=_0x559a80-0x0;var _0x42f555=_0x1280[_0x559a80];return _0x42f555;};var escapeRegExp=require(_0x0128('0x0'))['escapeRegExp'];var URL=require(_0x0128('0x1'))[_0x0128('0x2')];function testWildcardValidity(_0x80931f){var _0xf0c1aa=!![];try{new URL(_0x80931f[_0x0128('0x3')]('*',_0x0128('0x4')));}catch(_0x4bd1f3){_0xf0c1aa=![];}return _0xf0c1aa&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)[_0x0128('0x5')](_0x80931f);}function testWebsiteWithWildcard(_0x30da23,_0xa65596){var _0x2631a2;var _0x4aa391=escapeRegExp(_0x30da23['trim']()[_0x0128('0x3')](/\/$/,''))[_0x0128('0x3')]('\x5c*',_0x0128('0x6'));try{new URL(_0x30da23[_0x0128('0x3')]('\x5c*','localhost'));_0x2631a2=new RegExp(_0x4aa391)[_0x0128('0x5')](_0xa65596);}catch(_0x2fa9cb){_0x2631a2=![];}return _0x2631a2;}module['exports']={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file