flatiron/union — Issue #7: example and tests break on 0.4.12
Author: substack
Created: 2011-11-21 08:32:30+00:00
State: open

Running the example gives:

```
substack : examples $ node simple.js
union with director running on 8080

/home/substack/projects/union/node_modules/director/lib/director/router.js:402
match = path.match(new RegExp('^' + current));
^
SyntaxError: Invalid regular expression: /^/\/: \ at end of pattern
at new RegExp (unknown source)
at [object Object].traverse (/home/substack/projects/union/node_modules/director/lib/director/router.js:402:28)
at [object Object].dispatch (/home/substack/projects/union/node_modules/director/lib/director/http/index.js:62:18)
at Array.1 (/home/substack/projects/union/examples/simple.js:12:26)
at dispatch (/home/substack/projects/union/lib/routing-stream.js:100:20)
at [object Object]. (native)
at [object Object].g (events.js:143:14)
at [object Object].emit (events.js:61:17)
at /home/substack/projects/union/lib/routing-stream.js:96:21
at Array.favicon [as 0] (/home/substack/projects/union/examples/middleware/favicon.js:93:7)
substack : examples $
```

and since the test uses the example file, the test also fails.