diff options
| author | Misko Hevery | 2011-02-18 13:19:59 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-02-18 14:02:21 -0800 | 
| commit | fd6e5e3f31f374de7be7c80acaa766a14cb753db (patch) | |
| tree | 28b88246e0374daffd7fc38703f1b5851bc84ba6 /gdocs.js | |
| parent | 7d4aee31bb202e9b050fc15c56cfc33c46b9eaf5 (diff) | |
| download | angular.js-fd6e5e3f31f374de7be7c80acaa766a14cb753db.tar.bz2 | |
replace smart-quotes with regular quotes
Diffstat (limited to 'gdocs.js')
| -rwxr-xr-x | gdocs.js | 5 | 
1 files changed, 5 insertions, 0 deletions
| @@ -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));        } | 
