X Tutup
Skip to content

Commit 22dee3e

Browse files
committed
gdocs.js - add docos style comment stripping
1 parent bc2ca38 commit 22dee3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gdocs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ function download(collection, name, url) {
7979
// strip out all text annotations
8080
data = data.replace(/\[\w{1,3}\]/mg, '');
8181

82+
// strip out all docos comments
83+
data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, '')
84+
8285
// fix smart-quotes
8386
data = data.replace(/[]/g, '"');
8487
data = data.replace(/[]/g, "'");

0 commit comments

Comments
 (0)
X Tutup