replace smart-quotes with regular quotes

This commit is contained in:
Misko Hevery
2011-02-18 13:19:59 -08:00
parent 7d4aee31bb
commit fd6e5e3f31
3 changed files with 11 additions and 2 deletions

View File

@@ -64,6 +64,11 @@ function download(name, url) {
// strip out all text annotations
data = data.replace(/\[\w{1,3}\]/mg, '');
// fix smart-quotes
data = data.replace(/[“”]/g, '"');
data = data.replace(/[]/g, "'");
data = data + '\n';
fs.writeFileSync('docs/' + name, reflow(data, 100));
}