gdocs.js - add docos style comment stripping

This commit is contained in:
Igor Minar 2011-05-19 18:05:15 -07:00
parent bc2ca384b1
commit 22dee3e278

View file

@ -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, "'");