We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bb43a commit 5862400Copy full SHA for 5862400
index.js
@@ -158,7 +158,6 @@ module.exports = function(css){
158
if (!m) return;
159
var name = m[1];
160
161
- // {
162
if (!open()) return;
163
comments();
164
@@ -187,14 +186,12 @@ module.exports = function(css){
187
186
188
var media = m[1].trim();
189
190
191
- if (!match(/^{\s*/)) return;
+ if (!open()) return;
192
193
194
var style = rules();
195
196
- // }
197
- if (!match(/^}\s*/)) return;
+ if (!close()) return;
198
199
return { media: media, rules: style };
200
}
0 commit comments