From a4dd9ca769c62cf5f65fadc8da0d23d865116046 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 7 Jun 2011 15:29:34 -0700 Subject: fix comment stripping --- gdocs.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdocs.js') diff --git a/gdocs.js b/gdocs.js index 0d93a4a5..4e8048f0 100755 --- a/gdocs.js +++ b/gdocs.js @@ -73,6 +73,9 @@ function download(collection, name, url) { data = data.replace('\ufeff', ''); data = data.replace(/\r\n/mg, '\n'); + // strip out all text annotations + data = data.replace(/\[[a-zA-Z]{1,2}\]/mg, ''); + // strip out all docos comments data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, ''); -- cgit v1.2.3