📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 00:23:38
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
node_modules
/
postcss-import
/
lib
📍 /home/orkouolp/web/testing.orkobd/laravel/node_modules/postcss-import/lib
🔄 Refresh
✏️
Editing: join-media.js
Writable
"use strict" const startsWithKeywordRegexp = /^(all|not|only|print|screen)/i module.exports = function (parentMedia, childMedia) { if (!parentMedia.length && childMedia.length) return childMedia if (parentMedia.length && !childMedia.length) return parentMedia if (!parentMedia.length && !childMedia.length) return [] const media = [] parentMedia.forEach(parentItem => { const parentItemStartsWithKeyword = startsWithKeywordRegexp.test(parentItem) childMedia.forEach(childItem => { const childItemStartsWithKeyword = startsWithKeywordRegexp.test(childItem) if (parentItem !== childItem) { if (childItemStartsWithKeyword && !parentItemStartsWithKeyword) { media.push(`${childItem} and ${parentItem}`) } else { media.push(`${parentItem} and ${childItem}`) } } }) }) return media }
💾 Save Changes
❌ Cancel