mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-15 09:57:56 +08:00
gdocs.js - add docos style comment stripping
This commit is contained in:
3
gdocs.js
3
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, "'");
|
||||
|
||||
Reference in New Issue
Block a user