Skip to content

Commit

Permalink
update component/mod.d
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 30, 2015
1 parent a0be239 commit 8f39c39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/dub-example/component/source/component/mod.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ void removeSingleLineComments
{
foreach(line; lineSplitter(ir))
{
auto s = line.save.find!(not!isWhite);
if(!s.startsWith(cmt))
if(!line
.save
.find!(not!isWhite)
.startsWith(cmt))
{
put(or, line.until(cmt));
put(or, "\n");
Expand Down

0 comments on commit 8f39c39

Please sign in to comment.