Built motion from commit 44b1f254.|2.6.26
[motion2.git] / server / api / chatWebsite / helpers / wildcard-expressions.js
index 8b4c704..ca076de 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x39cb=['test','replace','([\x5cw]+)','exports','escapeRegExp','url','localhost'];(function(_0x225c16,_0x58fef4){var _0x503a75=function(_0x4409c6){while(--_0x4409c6){_0x225c16['push'](_0x225c16['shift']());}};_0x503a75(++_0x58fef4);}(_0x39cb,0x1bd));var _0xb39c=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x39cb[_0x167cc1];return _0x10bc4b;};var escapeRegExp=require('../../../utils/misc')[_0xb39c('0x0')];var URL=require(_0xb39c('0x1'))['URL'];function testWildcardValidity(_0x266bb4){let _0x3aacb4=!![];try{new URL(_0x266bb4['replace']('*',_0xb39c('0x2')));}catch(_0x285eca){_0x3aacb4=![];}return _0x3aacb4&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)[_0xb39c('0x3')](_0x266bb4);}function testWebsiteWithWildcard(_0x2bca14,_0x8a0b3f){let _0x4ae4cf;const _0x32cdcd=escapeRegExp(_0x2bca14)[_0xb39c('0x4')]('\x5c*',_0xb39c('0x5'));try{new URL(_0x2bca14[_0xb39c('0x4')]('\x5c*','localhost'));_0x4ae4cf=new RegExp(_0x32cdcd)['test'](_0x8a0b3f);}catch(_0x41557b){_0x4ae4cf=![];}return _0x4ae4cf;}module[_0xb39c('0x6')]={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file
+var _0xa4fb=['../../../utils/misc','escapeRegExp','url','URL','replace','localhost','([\x5cw]+)','test'];(function(_0x1528c6,_0x6d8317){var _0x149cb5=function(_0xfea5b3){while(--_0xfea5b3){_0x1528c6['push'](_0x1528c6['shift']());}};_0x149cb5(++_0x6d8317);}(_0xa4fb,0x150));var _0xba4f=function(_0xfb0cfd,_0x500179){_0xfb0cfd=_0xfb0cfd-0x0;var _0x2fd8aa=_0xa4fb[_0xfb0cfd];return _0x2fd8aa;};var escapeRegExp=require(_0xba4f('0x0'))[_0xba4f('0x1')];var URL=require(_0xba4f('0x2'))[_0xba4f('0x3')];function testWildcardValidity(_0x569bf7){let _0x5d2269=!![];try{new URL(_0x569bf7[_0xba4f('0x4')]('*',_0xba4f('0x5')));}catch(_0x27a519){_0x5d2269=![];}return _0x5d2269&&new RegExp(/(http(s)?):\/\/(\*|(((\*\.)+)?([a-zA-Z0-9\-_]+\.){0,}([a-zA-Z0-9\-_]+)))(:[\d]+)?\/?$/)['test'](_0x569bf7);}function testWebsiteWithWildcard(_0x413f97,_0x3dc285){let _0x379b0f;const _0x18baa8=escapeRegExp(_0x413f97)[_0xba4f('0x4')]('\x5c*',_0xba4f('0x6'));try{new URL(_0x413f97[_0xba4f('0x4')]('\x5c*',_0xba4f('0x5')));_0x379b0f=new RegExp(_0x18baa8)[_0xba4f('0x7')](_0x3dc285);}catch(_0x27f65a){_0x379b0f=![];}return _0x379b0f;}module['exports']={'testWebsiteWithWildcard':testWebsiteWithWildcard,'testWildcardValidity':testWildcardValidity};
\ No newline at end of file