Skip to content

Commit

Permalink
Merge pull request #500 from tommcc/fix_relative_depth_check
Browse files Browse the repository at this point in the history
Fix relativeDepth check
  • Loading branch information
bmuenzenmeyer authored Nov 6, 2016
2 parents 3772f53 + 1076398 commit 0de8279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/pattern_assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ var pattern_assembler = function () {

function processPatternIterative(relPath, patternlab) {

var relativeDepth = relPath.match(/\w(?=\\)|\w(?=\/)/g || []).length;
var relativeDepth = (relPath.match(/\w(?=\\)|\w(?=\/)/g) || []).length;
if (relativeDepth > 2) {
console.log('');
plutils.logOrange('Warning:');
Expand Down

0 comments on commit 0de8279

Please sign in to comment.