Skip to content

Commit 649b218

Browse files
committed
fix a pathing issue
1 parent 9382be1 commit 649b218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/object_factory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Pattern = function (relPath, data) {
1616
this.fileExtension = pathObj.ext; // '.mustache'
1717

1818
// this is the unique name, subDir + fileName (sans extension)
19-
this.name = this.subdir.replace(/[\/\\]/g, '-') + '-' + this.fileName.replace('~', '-'); // '00-atoms-00-global-00-colors'
19+
this.name = this.subdir.replace(path.sep, '-') + '-' + this.fileName.replace('~', '-'); // '00-atoms-00-global-00-colors'
2020

2121
// the JSON used to render values in the pattern
2222
this.jsonFileData = data || {};

0 commit comments

Comments
 (0)