mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
fix comment stripping
This commit is contained in:
parent
d6e4636618
commit
a4dd9ca769
1 changed files with 3 additions and 0 deletions
3
gdocs.js
3
gdocs.js
|
|
@ -73,6 +73,9 @@ function download(collection, name, url) {
|
|||
data = data.replace('\ufeff', '');
|
||||
data = data.replace(/\r\n/mg, '\n');
|
||||
|
||||
// strip out all text annotations
|
||||
data = data.replace(/\[[a-zA-Z]{1,2}\]/mg, '');
|
||||
|
||||
// strip out all docos comments
|
||||
data = data.replace(/^[^\s_]+:\n\S+[\S\s]*$/m, '');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue