ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.22.130.209 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/cms/node_modules/de-indent/ |
Upload File : |
var splitRE = /\r?\n/g var emptyRE = /^\s*$/ var needFixRE = /^(\r?\n)*[\t\s]/ module.exports = function deindent (str) { if (!needFixRE.test(str)) { return str } var lines = str.split(splitRE) var min = Infinity var type, cur, c for (var i = 0; i < lines.length; i++) { var line = lines[i] if (!emptyRE.test(line)) { if (!type) { c = line.charAt(0) if (c === ' ' || c === '\t') { type = c cur = count(line, type) if (cur < min) { min = cur } } else { return str } } else { cur = count(line, type) if (cur < min) { min = cur } } } } return lines.map(function (line) { return line.slice(min) }).join('\n') } function count (line, type) { var i = 0 while (line.charAt(i) === type) { i++ } return i }