We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb258e commit d89cf54Copy full SHA for d89cf54
src/PatternLab/Annotations.php
@@ -92,7 +92,7 @@ public static function gather() {
92
// read in the old style annotations.js, modify the data and generate JSON array to merge
93
$oldStyleAnnotationsPath = $annotationsDir.DIRECTORY_SEPARATOR."annotations.js";
94
if (file_exists($oldStyleAnnotationsPath)) {
95
- $text = file_get_contents($oldStyleAnnotationsPath);
+ $text = trim(file_get_contents($oldStyleAnnotationsPath));
96
$text = str_replace("var comments = ","",$text);
97
if ($text[strlen($text)-1] == ";") {
98
$text = rtrim($text,";");
0 commit comments