Skip to content

Commit 1aed313

Browse files
author
Tom McCaffery
committed
Fix parens in relativeDepth check
1 parent aefb32a commit 1aed313

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/lib/pattern_assembler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ var pattern_assembler = function () {
243243
}
244244

245245
function processPatternIterative(relPath, patternlab) {
246-
247-
var relativeDepth = relPath.match(/\w(?=\\)|\w(?=\/)/g || []).length;
246+
var relativeDepth = (relPath.match(/\w(?=\\)|\w(?=\/)/g) || []).length;
248247
if (relativeDepth > 2) {
249248
console.log('');
250249
plutils.logOrange('Warning:');

0 commit comments

Comments
 (0)