From 22dee3e27884f357654a470ce2afea08bedcb138 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 19 May 2011 18:05:15 -0700 Subject: gdocs.js - add docos style comment stripping --- gdocs.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdocs.js') 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, "'"); -- cgit v1.2.3