aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-18 13:19:59 -0800
committerMisko Hevery2011-02-18 14:02:21 -0800
commitfd6e5e3f31f374de7be7c80acaa766a14cb753db (patch)
tree28b88246e0374daffd7fc38703f1b5851bc84ba6 /gdocs.js
parent7d4aee31bb202e9b050fc15c56cfc33c46b9eaf5 (diff)
downloadangular.js-fd6e5e3f31f374de7be7c80acaa766a14cb753db.tar.bz2
replace smart-quotes with regular quotes
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index 4507931d..82bd3df4 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -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));
}