Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 14ea07d

Browse files
committed
(#1) Fixes issue 1
1 parent 7f8b09b commit 14ea07d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

minify.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ auto minify(const std::string& css) -> std::string {
9292
} break;
9393
case '/' :
9494
{
95-
// Consume the comment.
96-
if (css.at(++i) == '*') {
95+
if (css.at(i+1) == '*') {
96+
// Consume the comment.
97+
++i;
9798
while (!(css.at(++i) == '*' && css.at(++i) == '/')) {}
9899
}
99100
else minicss += '/';

0 commit comments

Comments
 (0)