Using the following code (in node):
var Structured = require('structured');
var structure = function() {
$fn($a, $b);
};
var code = "fn('a', 'b', 'c');";
console.log(Structured.match(code, structure));
I get true when I'm expecting false.
If you change the argument counts around:
var Structured = require('structured');
var structure = function() {
$fn($a, $b, $c);
};
var code = "fn('a', 'b');";
console.log(Structured.match(code, structure));
false is returned as expected.