PHP 8.2.30
Preview: range-conversion.js Size: 1.23 KB
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/node-cron/dist/esm/pattern/convertion/range-conversion.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = (() => {
    function replaceWithRange(expression, text, init, end, stepTxt) {
        const step = parseInt(stepTxt);
        const numbers = [];
        let last = parseInt(end);
        let first = parseInt(init);
        if (first > last) {
            last = parseInt(init);
            first = parseInt(end);
        }
        for (let i = first; i <= last; i += step) {
            numbers.push(i);
        }
        return expression.replace(new RegExp(text, 'i'), numbers.join());
    }
    function convertRange(expression) {
        const rangeRegEx = /(\d+)-(\d+)(\/(\d+)|)/;
        let match = rangeRegEx.exec(expression);
        while (match !== null && match.length > 0) {
            expression = replaceWithRange(expression, match[0], match[1], match[2], match[4] || '1');
            match = rangeRegEx.exec(expression);
        }
        return expression;
    }
    function convertAllRanges(expressions) {
        for (let i = 0; i < expressions.length; i++) {
            expressions[i] = convertRange(expressions[i]);
        }
        return expressions;
    }
    return convertAllRanges;
})();
//# sourceMappingURL=range-conversion.js.map

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
76 B lrw-r--r-- 2026-02-21 00:54:12
Edit Download
887 B lrw-r--r-- 2026-02-21 00:53:32
Edit Download
996 B lrw-r--r-- 2026-02-21 00:54:02
Edit Download
75 B lrw-r--r-- 2026-02-21 00:54:18
Edit Download
1.81 KB lrw-r--r-- 2026-02-21 00:53:44
Edit Download
1.41 KB lrw-r--r-- 2026-02-21 00:54:04
Edit Download
80 B lrw-r--r-- 2026-02-21 00:54:20
Edit Download
899 B lrw-r--r-- 2026-02-21 00:53:56
Edit Download
986 B lrw-r--r-- 2026-02-21 00:54:06
Edit Download
76 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
1.23 KB lrw-r--r-- 2026-02-21 00:53:58
Edit Download
1.45 KB lrw-r--r-- 2026-02-21 00:54:06
Edit Download
75 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
823 B lrw-r--r-- 2026-02-21 00:54:02
Edit Download
916 B lrw-r--r-- 2026-02-21 00:54:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).