aboutsummaryrefslogtreecommitdiffstats
path: root/gdocs.js
diff options
context:
space:
mode:
authorIgor Minar2011-05-19 18:05:15 -0700
committerIgor Minar2011-06-06 22:52:01 -0700
commit22dee3e27884f357654a470ce2afea08bedcb138 (patch)
treec8dfdc09ef3005759fe0235a6fb970a2507347de /gdocs.js
parentbc2ca384b1c44488c6e27c24f10111cc06113df9 (diff)
downloadangular.js-22dee3e27884f357654a470ce2afea08bedcb138.tar.bz2
gdocs.js - add docos style comment stripping
Diffstat (limited to 'gdocs.js')
-rwxr-xr-xgdocs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdocs.js b/gdocs.js
index b51eb130..e5c13b9e 100755
--- a/gdocs.js
+++ b/gdocs.js
@@ -79,6 +79,9 @@ function download(collection, name, url) {
// strip out all text annotations
data = data.replace(/\[\w{1,3}\]/mg, '');
+ // strip out all docos comments
+ data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, '')
+
// fix smart-quotes
data = data.replace(/[“”]/g, '"');
data = data.replace(/[‘’]/g, "'");