Skip to content

Commit f07475c

Browse files
authored
Fix for windows
With Windows, PHP_EOL not working correctly.
1 parent 71728df commit f07475c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function parseData($dataString)
6666
{
6767
$output = array();
6868
$field = array();
69-
foreach (explode(PHP_EOL, $dataString) as $line) {
69+
foreach (explode("\n", $dataString) as $line) {
7070
$trimmedLine = trim($line);
7171
if ($trimmedLine === '---' || $trimmedLine === '') {
7272
// Block completed; process it

0 commit comments

Comments
 (0)