File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -225,9 +225,9 @@ module.exports = WorkflowManager = (function() {
225
225
} ;
226
226
227
227
WorkflowManager . prototype . _buildAssetOptions = function ( fileName ) {
228
- var ext ;
228
+ var baseName , ext ;
229
229
ext = path . extname ( fileName ) . toLowerCase ( ) ;
230
- ext = ext . length > 1 ? ext . substring ( 1 ) : '' ;
230
+ ext = ext . length > 1 ? ext . substring ( 1 ) : ( baseName = path . basename ( fileName ) , baseName . indexOf ( "." ) === 0 && baseName . length > 1 ? baseName . substring ( 1 ) : '' ) ;
231
231
return {
232
232
inputFile : fileName ,
233
233
extension : ext
Original file line number Diff line number Diff line change @@ -154,7 +154,17 @@ module.exports = class WorkflowManager
154
154
155
155
_buildAssetOptions : (fileName ) ->
156
156
ext = path .extname (fileName).toLowerCase ()
157
- ext = if ext .length > 1 then ext .substring (1 ) else ' '
157
+ ext = if ext .length > 1
158
+ ext .substring (1 )
159
+ else
160
+ # is dot file?
161
+ baseName = path .basename ( fileName )
162
+ if baseName .indexOf (" ." ) is 0 and baseName .length > 1
163
+ baseName .substring (1 )
164
+ else
165
+ # no extension found
166
+ ' '
167
+
158
168
{inputFile : fileName, extension : ext}
159
169
160
170
_executeWorkflowStep : (options , type , done = @_finishedWithFile ) ->
You can’t perform that action at this time.
0 commit comments