Skip to content

Commit

Permalink
Trim only new line characters from read log line
Browse files Browse the repository at this point in the history
  • Loading branch information
mvar committed Jun 13, 2017
1 parent caf3570 commit 56e252e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ php:
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1

install:
- composer install --no-interaction --prefer-dist
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Mantas Varatiejus
Copyright (c) 2015-2017 Mantas Varatiejus

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This library can be found on [Packagist][1].
The recommended way to install this is through [Composer][2]:

```bash
composer require mvar/log-parser:dev-master
composer require mvar/log-parser:^1.0
```

Basic Usage
Expand Down
2 changes: 1 addition & 1 deletion src/LogIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function readLine()

return;
}
$buffer = trim($buffer);
$buffer = trim($buffer, "\n\r\0");

if (!$this->skipEmptyLines) {
break;
Expand Down

0 comments on commit 56e252e

Please sign in to comment.