We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66ba7b0 commit 6fdba42Copy full SHA for 6fdba42
src/actions/transformations/remove_comments.cc
@@ -59,14 +59,14 @@ std::string RemoveComments::evaluate(const std::string &value,
59
} else if ((input[i] == '<') && (i + 1 < input_len)
60
&& (input[i + 1] == '!') && (i + 2 < input_len)
61
&& (input[i+2] == '-') && (i + 3 < input_len)
62
- && (input[i + 3] == '-') && (incomment == 0)) {
+ && (input[i + 3] == '-')) {
63
incomment = 1;
64
i += 4;
65
} else if ((input[i] == '-') && (i + 1 < input_len)
66
- && (input[i + 1] == '-') && (incomment == 0)) {
+ && (input[i + 1] == '-')) {
67
input[i] = ' ';
68
break;
69
- } else if (input[i] == '#' && (incomment == 0)) {
+ } else if (input[i] == '#') {
70
71
72
} else {
0 commit comments