mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
gdocs.js - add docos style comment stripping
This commit is contained in:
parent
bc2ca384b1
commit
22dee3e278
1 changed files with 3 additions and 0 deletions
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, "'");
|
||||
|
|
|
|||
Loading…
Reference in a new issue