fent/ret.js — pull request #5 by dtudury (2014-09-17 04:14:19+00:00)
Title: node js regex has a few more characters in the ANYCHAR and WHITESPACE sets

I wrote the code below trying to get an exhaustive list of the 2 interesting unicode character sets. I thought it might be elegant to generate the list rather than copy it into code.

if you disagree, I'm happy to copy the missing codes into the sets

```
> for (var i = 0; i < 65535; i++) if (!/./.exec(String.fromCharCode(i))) console.log(i);
10
13
8232
8233
> for (var i = 0; i < 65535; i++) if (/\s/.exec(String.fromCharCode(i))) console.log(i);
9
10
11
12
13
32
160
5760
6158
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8232
8233
8239
8287
12288
65279
```