mirror of
https://github.com/demostf/demo.js
synced 2026-06-04 00:54:14 +02:00
refactor state handling a bit
+ some random other changes I forgot to commit earlier
This commit is contained in:
parent
2d26dfdfb5
commit
c43627e3c1
11 changed files with 75 additions and 92 deletions
|
|
@ -30,12 +30,12 @@ fs.readFile(argv._[0], function (err, data) {
|
|||
echo(head);
|
||||
return;
|
||||
}
|
||||
var body = parser.parseBody();
|
||||
var match = parser.parseBody();
|
||||
if (argv.dump) {
|
||||
echo(parser.packets);
|
||||
echo(parser.match.packets);
|
||||
} else if (argv.strings) {
|
||||
echo(parser.strings);
|
||||
echo(parser.match.strings);
|
||||
} else {
|
||||
echo(body);
|
||||
echo(match.getState());
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue