diff options
| author | Igor Minar | 2011-06-07 15:29:34 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-06-07 16:11:01 -0700 | 
| commit | a4dd9ca769c62cf5f65fadc8da0d23d865116046 (patch) | |
| tree | 852ecad5f07eb3b2d659057761256650d623fd4c /gdocs.js | |
| parent | d6e4636618b6f1dfb65d9cff9e5083950ad4acd9 (diff) | |
| download | angular.js-a4dd9ca769c62cf5f65fadc8da0d23d865116046.tar.bz2 | |
fix comment strippingv0.9.16
Diffstat (limited to 'gdocs.js')
| -rwxr-xr-x | gdocs.js | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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, ''); | 
