/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/tailwindcss/src/util/parseGlob.js
23 строки
510 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
import globParent from 'glob-parent' // Based on `glob-base` // https://github.com/micromatch/glob-base/blob/master/index.js export function parseGlob(pattern) { let glob = pattern let base = globParent(pattern) if (base !== '.') { glob = pattern.substr(base.length) if (glob.charAt(0) === '/') { glob = glob.substr(1) } } if (glob.substr(0, 2) === './') { glob = glob.substr(2) } else if (glob.charAt(0) === '/') { glob = glob.substr(1) } return { base, glob } }