Skip to content

Commit 56e252e

Browse files
committed
Trim only new line characters from read log line
1 parent caf3570 commit 56e252e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ php:
77
- 5.5
88
- 5.6
99
- 7.0
10-
- hhvm
10+
- 7.1
1111

1212
install:
1313
- composer install --no-interaction --prefer-dist

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015 Mantas Varatiejus
1+
Copyright (c) 2015-2017 Mantas Varatiejus
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This library can be found on [Packagist][1].
2222
The recommended way to install this is through [Composer][2]:
2323

2424
```bash
25-
composer require mvar/log-parser:dev-master
25+
composer require mvar/log-parser:^1.0
2626
```
2727

2828
Basic Usage

src/LogIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function readLine()
100100

101101
return;
102102
}
103-
$buffer = trim($buffer);
103+
$buffer = trim($buffer, "\n\r\0");
104104

105105
if (!$this->skipEmptyLines) {
106106
break;

0 commit comments

Comments
 (0)