Skip to content

Commit 677dd07

Browse files
committed
Adjust @custom-media code according to @necolas recommandations
1 parent a2639ea commit 677dd07

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

index.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -384,23 +384,19 @@ module.exports = function(css, options){
384384

385385

386386
/**
387-
* Parse custom-media.
388-
*/
387+
* Parse custom-media.
388+
*/
389389

390390
function atcustommedia() {
391391
var pos = position();
392392
var m = match(/^@([-\w]+)?custom-media (--[^\s]+) *([^{]+);/);
393393
if (!m) return;
394394

395-
var vendor = trim(m[1]);
396-
var name = trim(m[2]);
397-
var list = trim(m[3]);
398-
399395
return pos({
400396
type: 'custom-media',
401-
vendor: vendor,
402-
name: name,
403-
media: list
397+
vendor: trim(m[1]),
398+
name: trim(m[2]),
399+
media: trim(m[3])
404400
});
405401
}
406402

0 commit comments

Comments
 (0)