projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d787ca
)
tests/soup.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:21:26 +0000
(23:21 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 23 May 2012 15:21:26 +0000
(23:21 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
009e5bb
..
5c7709e
100644
(file)
--- a/
tests/soup.js
+++ b/
tests/soup.js
@@
-11,11
+11,9
@@
var lines = {};
netrc.split("\n").forEach(function(nl) {
var line = {};
var k = false
- print(JSON.stringify(nl));
-
+
nl.replace(/\s+$/,'').replace(/^\s+/,'').split(/\s+/).forEach(function(kv) {
- print(JSON.stringify(kv));
-
+
if (!k) {
k = kv;
return
@@
-23,8
+21,7
@@
netrc.split("\n").forEach(function(nl) {
line[k] = kv
k = false;
});
- print(JSON.stringify(line));
-
+
lines[line.machine] = line;
});