Skip to content

Commit a4dd9ca

Browse files
committed
fix comment stripping
1 parent d6e4636 commit a4dd9ca

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
@@ -73,6 +73,9 @@ function download(collection, name, url) {
7373
data = data.replace('\ufeff', '');
7474
data = data.replace(/\r\n/mg, '\n');
7575

76+
// strip out all text annotations
77+
data = data.replace(/\[[a-zA-Z]{1,2}\]/mg, '');
78+
7679
// strip out all docos comments
7780
data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, '');
7881

0 commit comments

Comments
 (0)