bleskes/sense — pull request #30 by spenceralger (2013-10-25 22:46:39+00:00)
Title: Added the ability to paste more than one curl command at a time.

Curl commands are currently recognized using a RegExp that searches for:
- line starting with `curl ` (with the space)
- may be followed by a single unquoted word
- must be followed by a hyphen or quoted string

This mean that the following strings would pass:
- `curl "*"`
- `curl -XPOST ...`
- `curl localhost -XPOST`

The only example I can think of that won't be recognized is `curl locahost` (without any args/flags). I think that allowing this to pass would be too liberal, but please let me know if you can think of a better way to find these statements.

I've added tests for this as well, and you can use [this gist](https://gist.github.com/spenceralger/f6df9a45bc5802b4a540) if you want to see it *in action*