Skip to content

Commit 6a306ce

Browse files
fixed error Replace ((this.subdir.match(/\w(?=\\)|\w(?=\/)/g)·||·[]).length·>·1) with `·((this.subdir.match(/\w(?=\\)|\w(?=\/)/g)·||·[]).length·>·1)·
fixed error Replace `↹` with `··`
1 parent 4b81395 commit 6a306ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/lib/object_factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const Pattern = function(relPath, data, patternlab) {
3535
this.relPath = path.normalize(relPath); // '00-atoms/00-global/00-colors.mustache'
3636
this.fileName = pathObj.name; // '00-colors'
3737
this.subdir = pathObj.dir; // '00-atoms/00-global'
38-
if((this.subdir.match(/\w(?=\\)|\w(?=\/)/g) || []).length > 1){
39-
this.subdir = this.subdir.split(/\/|\\/, 2).join(path.sep); // '00-atoms/03-controls/00-button' -> '00-atoms/00-global'
38+
if ((this.subdir.match(/\w(?=\\)|\w(?=\/)/g) || []).length > 1) {
39+
this.subdir = this.subdir.split(/\/|\\/, 2).join(path.sep); // '00-atoms/03-controls/00-button' -> '00-atoms/00-global'
4040
}
4141
this.fileExtension = pathObj.ext; // '.mustache'
4242

0 commit comments

Comments
 (0)