Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 92c324c

Browse files
committed
Merge pull request zweilove#36 from aaronjensen/patch-1
Fix anchors in media query regex
2 parents 354d60d + 735f507 commit 92c324c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/css_splitter/splitter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def self.extract_part(rules, part = 1, max_selectors = MAX_SELECTORS_DEFAULT)
3939
rule_selectors_count = count_selectors_of_rule rule
4040
selectors_count += rule_selectors_count
4141

42-
if rule =~ /^\s*}$/
42+
if rule =~ /\A\s*}\z$/
4343
current_media = nil
4444
# skip the line if the close bracket is the first rule for the new file
4545
next if first_hit

0 commit comments

Comments
 (0)