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.
yml
yaml
1 parent e1c0509 commit 884c995Copy full SHA for 884c995
src/PatternLab/Data.php
@@ -125,7 +125,7 @@ public static function gather($options = array()) {
125
$pathName = $file->getPathname();
126
$pathNameClean = str_replace($sourceDir."/","",$pathName);
127
128
- if (!$hidden && (($ext == "json") || ($ext == "yaml"))) {
+ if (!$hidden && (($ext == "json") || ($ext == "yaml") || ($ext == "yml"))) {
129
130
if ($isListItems === false) {
131
@@ -137,7 +137,7 @@ public static function gather($options = array()) {
137
JSON::lastErrorMsg($pathNameClean,$jsonErrorMessage,$data);
138
}
139
140
- } else if ($ext == "yaml") {
+ } else if (($ext == "yaml") || ($ext == "yml")) {
141
142
$file = file_get_contents($pathName);
143
0 commit comments