Skip to content

Commit

Permalink
strip comment like '/* i am comment */'
Browse files Browse the repository at this point in the history
Fix for #134
Partial fix for 175
  • Loading branch information
yulei authored and avbasov committed Jan 24, 2016
1 parent 85da6c9 commit 6dc7fe3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ private static void stripComment(final StringBuilder sbStatement) {

pos = sbStatement.indexOf("--", pos + 1);
}

int endPos = sbStatement.indexOf("*/");
if (endPos >= 0) {
int startPos = sbStatement.indexOf("/*");
sbStatement.replace(startPos, endPos + 2, "");
}
}

/**
Expand Down

0 comments on commit 6dc7fe3

Please sign in to comment.