Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Please read the guidelines: https://github.com/pattern-lab/patternlab-node/blob/

The Pattern Lab Node team uses [our gitter.im channel, pattern-lab/node](https://gitter.im/pattern-lab/node) to keep in sync, share updates, and talk shop. Please stop by to say hello or as a first place to turn if stuck. Other channels in the Pattern Lab organization can be found on gitter too.

There is also a dedicated Pattern Lab channel on the [design system slack](designsystems.herokuapp.com) run by [@jina](https://twitter.com/jina).
There is also a dedicated Pattern Lab channel on the [design system slack](http://designsystems.herokuapp.com) run by [@jina](https://twitter.com/jina).

Ask or answer Pattern Lab questions on Stack Overflow: http://stackoverflow.com/questions/tagged/patternlab.io

Expand Down
2 changes: 1 addition & 1 deletion core/lib/object_factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var Pattern = function (relPath, data, patternlab) {

// Let's calculate the verbose name ahead of time! We don't use path.sep here
// on purpose. This isn't a file name!
this.verbosePartial = this.subdir + '/' + this.fileName;
this.verbosePartial = this.subdir.split(path.sep).join('/') + '/' + this.fileName;

this.isPattern = true;
this.isFlatPattern = this.patternGroup === this.patternSubGroup;
Expand Down
2 changes: 1 addition & 1 deletion core/lib/pattern_assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var pattern_assembler = function () {
for (var i = 0; i < patternlab.patterns.length; i++) {
switch (partialName) {
case patternlab.patterns[i].relPath:
case patternlab.patterns[i].subdir + '/' + patternlab.patterns[i].fileName:
case patternlab.patterns[i].verbosePartial:
return patternlab.patterns[i];
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/pattern_registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ PatternRegistry.prototype = {
for (let thisPattern of patterns) {
switch (partialName) {
case thisPattern.relPath:
case thisPattern.subdir + '/' + thisPattern.fileName:
case thisPattern.verbosePartial:
return thisPattern;
}
}
Expand Down
2 changes: 2 additions & 0 deletions test/parameter_hunter_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function currentPatternClosure() {
"relPath": "02-organisms/02-comments/01-sticky-comment.mustache",
"fileName": "01-sticky-comment",
"subdir": "02-organisms/02-comments",
"verbosePartial": "02-organisms/02-comments/01-sticky-comment",
"name": "02-organisms-02-comments-01-sticky-comment",
"patternBaseName": "sticky-comment",
"patternLink": "02-organisms-02-comments-01-sticky-comment/02-organisms-02-comments-01-sticky-comment.html",
Expand All @@ -40,6 +41,7 @@ function patternlabClosure() {
"relPath": "01-molecules/06-components/02-single-comment.mustache",
"fileName": "02-single-comment",
"subdir": "01-molecules/06-components",
"verbosePartial": "01-molecules/06-components/02-single-comment",
"name": "01-molecules-06-components-02-single-comment",
"patternBaseName": "single-comment",
"patternLink": "01-molecules-06-components-02-single-comment/01-molecules-06-components-02-single-comment.html",
Expand Down