Skip to content

Commit 47c9eee

Browse files
committed
fix(get): Attempt to sanitize verbosePartial into posix format
1 parent 7d57fe7 commit 47c9eee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/lib/get.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use strict";
22

33
const logger = require('./log');
4+
const path = require('path');
45

56
module.exports = function (partialName, patternlab) {
67
//look for exact partial matches
@@ -14,7 +15,8 @@ module.exports = function (partialName, patternlab) {
1415
for (var i = 0; i < patternlab.patterns.length; i++) {
1516
switch (partialName) {
1617
case patternlab.patterns[i].relPath:
17-
case patternlab.patterns[i].verbosePartial:
18+
return patternlab.patterns[i];
19+
case path.normalize(patternlab.patterns[i].verbosePartial):
1820
return patternlab.patterns[i];
1921
}
2022
}

0 commit comments

Comments
 (0)