IonicaBizau/node-regex-parser — pull request #1 by IonicaBizau (2014-09-29 08:08:30+00:00)
Title: 1.0.0

- More stable algorithm
- Added tests
- Starting with this version, `parse` method is removed. The module exports a
function.

## New API:

```js
require("regex-parser")("hi"); // => /hi/
```

## Tests

```sh
$ npm test

> regex-parser@1.0.0 test /home/ionicabizau/Documents/node-regex-parser
> vows --spec --isolate

♢ node-regex-parser

no flags, no delimiters
✓ should respond with /hi/
no flags, with delimiters
✓ should respond with /hello world/
with flags, with delimiters
✓ should respond with /hello world/gi
start with slash, but no other delimiters
✓ should respond with //hello world/
slash inside
✓ should respond with /hello/world/
two slashes, but no flags
✓ should respond with /hello/wor/ld/
simulating flags, but invalid ones
✓ should respond with //hello wor/ld/
complex regex inside
✓ should respond with correct complex regex

✓ OK » 8 honored (0.004s)
```