Skip to content

Commit 8966f66

Browse files
committed
Hopefully fix the nav issue
1 parent cac925a commit 8966f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/ui_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function buildNavigation(patternlab) {
8484
//if there is one or more slashes in the subdir, get everything after
8585
//the last slash. if no slash, get the whole subdir string and strip
8686
//any numeric + hyphen prefix
87-
patternSubTypeName = pattern.subdir.split('/').pop().replace(/^\d*\-/, '');
87+
patternSubTypeName = pattern.subdir.split(path.sep).pop().replace(/^\d*\-/, '');
8888

8989
//get the patternSubTypeItem
9090
patternSubTypeItemName = pattern.patternName.replace(/-/g, ' ');

0 commit comments

Comments
 (0)