We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac925a commit 8966f66Copy full SHA for 8966f66
core/lib/ui_builder.js
@@ -84,7 +84,7 @@ function buildNavigation(patternlab) {
84
//if there is one or more slashes in the subdir, get everything after
85
//the last slash. if no slash, get the whole subdir string and strip
86
//any numeric + hyphen prefix
87
- patternSubTypeName = pattern.subdir.split('/').pop().replace(/^\d*\-/, '');
+ patternSubTypeName = pattern.subdir.split(path.sep).pop().replace(/^\d*\-/, '');
88
89
//get the patternSubTypeItem
90
patternSubTypeItemName = pattern.patternName.replace(/-/g, ' ');
0 commit comments