File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ var Migration = Skeleton.extend({
37
37
Migration . registerHook = function ( plugin , internals ) {
38
38
39
39
var plugin = plugin . hook ( 'migrator:migration:hook:require' ) ;
40
- internals . parser = internals . parse || {
40
+ internals . parser = internals . parser || {
41
41
filesRegEx : filesRegEx ,
42
42
extensions : 'js'
43
43
} ;
@@ -52,8 +52,9 @@ Migration.registerHook = function(plugin, internals) {
52
52
} )
53
53
. each ( function ( parser ) {
54
54
55
- internals . parser . extensions = internals . parser . extensions + '|' +
56
- parser . extensions ;
55
+ if ( parser && parser . extensions )
56
+ internals . parser . extensions = internals . parser . extensions + '|' +
57
+ parser . extensions ;
57
58
} )
58
59
. then ( function ( ) {
59
60
internals . parser . filesRegEx = new RegExp (
You can’t perform that action at this time.
0 commit comments