| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 207142d commit 898276b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,9 +19,7 @@ outputStream.setEncoding('utf8'); | |||
| 19 | 19 | outputStream.on('data', (data) => output += data); | |
| 20 | 20 | ||
| 21 | 21 | r.on('exit', common.mustCall(() => { | |
| 22 | - const results = output.split('\n').map((line) => { | ||
| 23 | - return line.replace(/\w*>\w*/, '').trim(); | ||
| 24 | - }); | ||
| 22 | + const results = output.replace(/^> /mg, '').split('\n'); | ||
| 25 | 23 | ||
| 26 | 24 | assert.deepStrictEqual(results, ['undefined', 'true', 'true', '']); | |
| 27 | 25 | })); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,10 +14,7 @@ child.stdout.on('data', (data) => { | |||
| 14 | 14 | }); | |
| 15 | 15 | ||
| 16 | 16 | child.on('exit', common.mustCall(() => { | |
| 17 | - const results = output.split('\n').map((line) => { | ||
| 18 | - return line.replace(/\w*>\w*/, '').trim(); | ||
| 19 | - }); | ||
| 20 | - | ||
| 17 | + const results = output.replace(/^> /mg, '').split('\n'); | ||
| 21 | 18 | assert.deepStrictEqual(results, ['undefined', 'true', 'true', '']); | |
| 22 | 19 | })); | |
| 23 | 20 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments