File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ tslint.json
44tsconfig.json
55** /* .ts
66* .ts
7- src /README .md
7+ src /* .md
88dist /cr.json
99coderoad.json
1010notes.md
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -33,16 +33,12 @@ exports.task = parseWithCode('+');
3333exports . codeBlock = parseWithCode ( '```' ) ;
3434exports . isArray = function ( line ) {
3535 var isMatch = line . match ( / ^ \[ .+ \] $ / ) ;
36- if ( isMatch ) {
37- return isMatch [ 0 ] ;
38- }
39- else {
40- return false ;
41- }
36+ return isMatch ? isMatch [ 0 ] : false ;
4237} ;
4338exports . isAction = function ( line ) {
4439 return line . match ( / ^ @ ( a c t i o n | t e s t | h i n t ) \( ( .+ ) \) $ / ) ;
4540} ;
4641exports . isImport = function ( line ) {
47- return line . match ( / ^ @ i m p o r t \( ( .+ ) \) $ / ) ;
42+ var isMatch = line . match ( / ^ @ i m p o r t \( ( .+ ) \) $ / ) ;
43+ return isMatch ? isMatch [ 1 ] : false ;
4844} ;
You can’t perform that action at this time.
0 commit comments