/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/autoprefixer/lib/old-value.js
22 строки
463 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
let utils = require('./utils') class OldValue { constructor(unprefixed, prefixed, string, regexp) { this.unprefixed = unprefixed this.prefixed = prefixed this.string = string || prefixed this.regexp = regexp || utils.regexp(prefixed) } /** * Check, that value contain old value */ check(value) { if (value.includes(this.string)) { return !!value.match(this.regexp) } return false } } module.exports = OldValue