Skip to content

Commit 6b663f7

Browse files
committed
fix: prevent error in hint builder.
1 parent b3e2318 commit 6b663f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/builder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
return trim($line);
1717
}, explode("\n", $text, 3));
1818

19-
$hints[] = '$hints[] = [' . var_export($category, true) . ', ' . \
20-
var_export($author, true) . ', "' . \
21-
strtr($body, ["\n" => '\n', "\t" => '\t', "\"" => '\"', "'" => '\'']) . '"];';
19+
$hints[] = '$hints[] = [' . var_export($category, true) . ', ' . var_export($author, true) . ', "' . strtr($body, ["\r\n" => '\n', "\n" => '\n', "\t" => '\t', "\"" => '\"', "'" => '\'']) . '"];';
2220
}
2321

2422
$body = file_get_contents(__DIR__ . '/../index.php.src');

0 commit comments

Comments
 (0)