HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/1527/cwd/tana/frontend/node_modules/locutus/php/strings/strstr.js.map
{"version":3,"sources":["../../../src/php/strings/strstr.js"],"names":["module","exports","strstr","haystack","needle","bool","pos","indexOf","substr","slice"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,MAAT,CAAiBC,QAAjB,EAA2BC,MAA3B,EAAmCC,IAAnC,EAAyC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,MAAM,CAAV;;AAEAH,cAAY,EAAZ;AACAG,QAAMH,SAASI,OAAT,CAAiBH,MAAjB,CAAN;AACA,MAAIE,QAAQ,CAAC,CAAb,EAAgB;AACd,WAAO,KAAP;AACD,GAFD,MAEO;AACL,QAAID,IAAJ,EAAU;AACR,aAAOF,SAASK,MAAT,CAAgB,CAAhB,EAAmBF,GAAnB,CAAP;AACD,KAFD,MAEO;AACL,aAAOH,SAASM,KAAT,CAAeH,GAAf,CAAP;AACD;AACF;AACF,CA3BD","file":"strstr.js","sourcesContent":["module.exports = function strstr (haystack, needle, bool) {\n  //  discuss at: http://locutus.io/php/strstr/\n  // original by: Kevin van Zonneveld (http://kvz.io)\n  // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n  // improved by: Kevin van Zonneveld (http://kvz.io)\n  //   example 1: strstr('Kevin van Zonneveld', 'van')\n  //   returns 1: 'van Zonneveld'\n  //   example 2: strstr('Kevin van Zonneveld', 'van', true)\n  //   returns 2: 'Kevin '\n  //   example 3: strstr('name@example.com', '@')\n  //   returns 3: '@example.com'\n  //   example 4: strstr('name@example.com', '@', true)\n  //   returns 4: 'name'\n\n  var pos = 0\n\n  haystack += ''\n  pos = haystack.indexOf(needle)\n  if (pos === -1) {\n    return false\n  } else {\n    if (bool) {\n      return haystack.substr(0, pos)\n    } else {\n      return haystack.slice(pos)\n    }\n  }\n}\n"]}