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 @@ -42,10 +42,11 @@ export class Parser {
4242 }
4343
4444 getLines ( parseResult , index ) :Command [ ] {
45+ let linebreak = process . platform == "win32" ? "\r\n" : "\n" ;
4546 try {
46- return ( parseResult [ 2 ] [ index ] [ 6 ] . steplines || parseResult [ 2 ] [ index ] [ 2 ] [ 6 ] . steplines ) . split ( "\r\n" ) . filter ( e => e != '' ) . map ( e => this . createCommand ( e ) ) ;
47+ return ( parseResult [ 2 ] [ index ] [ 6 ] . steplines || parseResult [ 2 ] [ index ] [ 2 ] [ 6 ] . steplines ) . split ( linebreak ) . filter ( e => e != '' ) . map ( e => this . createCommand ( e ) ) ;
4748 } catch ( error ) {
48- return parseResult [ 2 ] [ index ] [ 2 ] [ 6 ] . steplines . split ( "\r\n" ) . filter ( e => e != '' ) . map ( e => this . createCommand ( e ) ) ;
49+ return parseResult [ 2 ] [ index ] [ 2 ] [ 6 ] . steplines . split ( linebreak ) . filter ( e => e != '' ) . map ( e => this . createCommand ( e ) ) ;
4950 }
5051 }
5152
@@ -73,4 +74,4 @@ export class Parser {
7374 return "" ;
7475 }
7576 }
76- }
77+ }
You can’t perform that action at this time.
0 commit comments