File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,13 +145,13 @@ const translate = function(i) {
145145module . exports = function ( text ) {
146146 let resultText = ''
147147 let result = [ ]
148- const turns = text . split ( '---\n' ) . filter ( ( i ) => ! ! i )
148+ const turns = text . split ( '---' )
149149 for ( let i = 0 ; i < turns . length ; i ++ ) {
150150 resultText += '第' + ( i + 1 ) + '面\n'
151151 result . push ( [ ] )
152152
153153 // 解析命令
154- turns [ i ] . split ( '\n' ) . filter ( ( c ) => ! ! c ) . forEach ( function ( command ) {
154+ turns [ i ] . split ( '\n' ) . map ( i => i . trim ( ) ) . filter ( ( c ) => ! ! c ) . forEach ( function ( command ) {
155155 const c = / ^ ( \w ) : ( \d ) , ( \d ) , ( \d ) $ / . exec ( command )
156156 if ( ! c ) {
157157 toast ( '错误的指令' )
Original file line number Diff line number Diff line change 3636 },
3737 "scripts" : {},
3838 "versionCode" : 1 ,
39- "versionName" : " 0.0.9 "
39+ "versionName" : " 0.0.10 "
4040}
You can’t perform that action at this time.
0 commit comments