Closed cxyokk closed 10 years ago
Its a useful feature, thanks, I'll pull once it has tests and docs.
I'd also suggest using regex.test(), though that's pretty minor.
@sam-github Another minor thing. This breaks the style of the project. I have an unhealthy hatred of if
statements without {
and }
. I know ... I should see a doctor, but until then: JSHint.
Fair enough, (though jshint doesn't warn about that) listen to @indexzero, Mr. @cxyokk, and also fix:
lib/nexpect.js: line 15, col 34, Use '!==' to compare with 'null'.
lib/nexpect.js: line 27, col 34, Use '!==' to compare with 'null'.
JSHint with this .jshintrc does because of this option:
curly: true
more info: http://jshint.com/docs/options/#curly
This option requires you to always put curly braces around blocks in loops and conditionals.
Closing in favour of #15
see #9 Is this ok?