/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/adjust-sourcemap-loader/codec/bower-component.js
21 строка
511 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'use strict'; /** * Codec for code generated by the Bower plugin. * @type {{name:string, decode:function, abstract:boolean}} */ module.exports = { name : 'bowerComponent', decode : decode, abstract: true }; /** * Validate the given uri (abstract). * @this {{options: object}} A loader or compilation * @param {string} uri A source uri to decode * @returns {boolean|string} False where unmatched else True */ function decode(uri) { return /^\/?([\w-]+)\s+\(bower component\)$/.test(uri); }