/
sweetebin
/
hackaton_26
Обзор
Документация
Войти
/
sweetebin
/
hackaton_26
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
web-form-project/node_modules/concurrently/dist/src/utils.js
16 строк
450 B
AKorostelev
web form project added
28 июл 2026, 10:57
28 июл 2026, 10:57
4339e77
Код
Авторство
О чём код?
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.escapeRegExp = escapeRegExp; exports.castArray = castArray; /** * Escapes a string for use in a regular expression. */ function escapeRegExp(str) { return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); } /** * Casts a value to an array if it's not one. */ function castArray(value) { return (Array.isArray(value) ? value : value != null ? [value] : []); }