File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
24
24
25
25
//look for a pseudo pattern by checking if there is a file containing same
26
26
//name, with ~ in it, ending in .json, .yml or .yaml
27
- const needle =
28
- currentPattern . subdir + '/' + currentPattern . fileName + '~*.{json,yml,yaml}' ;
27
+ const needle = currentPattern . subdir +
28
+ '/' +
29
+ currentPattern . fileName +
30
+ '~*.{json,yml,yaml}' ;
29
31
const pseudoPatterns = glob . sync ( needle , {
30
32
cwd : paths . source . patterns ,
31
33
debug : false ,
@@ -53,7 +55,7 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
53
55
logger . warning (
54
56
`There was an error parsing pseudopattern JSON for ${
55
57
currentPattern . relPath
56
- } `
58
+ } `
57
59
) ;
58
60
logger . warning ( err ) ;
59
61
}
@@ -68,7 +70,10 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
68
70
const variantName = pseudoPatterns [ i ]
69
71
. substring ( pseudoPatterns [ i ] . indexOf ( '~' ) + 1 )
70
72
. split ( '.' ) [ 0 ] ;
71
- const variantExtension = pseudoPatterns [ i ] . split ( '.' ) . slice ( - 1 ) . pop ( ) ;
73
+ const variantExtension = pseudoPatterns [ i ]
74
+ . split ( '.' )
75
+ . slice ( - 1 )
76
+ . pop ( ) ;
72
77
const variantFilePath = path . join (
73
78
currentPattern . subdir ,
74
79
currentPattern . fileName + '~' + variantName + '.' + variantExtension
You can’t perform that action at this time.
0 commit comments