Skip to content

Commit 78633fb

Browse files
committed
Add yml/yaml to glob pattern for pseudo pattern hunting.
1 parent 3b51a58 commit 78633fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/lib/pseudopattern_hunter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
2222
const paths = patternlab.config.paths;
2323

2424
//look for a pseudo pattern by checking if there is a file containing same
25-
//name, with ~ in it, ending in .json
25+
//name, with ~ in it, ending in .json, .yml or .yaml
2626
const needle =
27-
currentPattern.subdir + '/' + currentPattern.fileName + '~*.json';
27+
currentPattern.subdir + '/' + currentPattern.fileName + '~*.(json|yml|yaml)';
2828
const pseudoPatterns = glob.sync(needle, {
2929
cwd: paths.source.patterns,
3030
debug: false,

0 commit comments

Comments
 (0)