diff options
| author | Igor Minar | 2011-05-19 18:05:15 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:52:01 -0700 | 
| commit | 22dee3e27884f357654a470ce2afea08bedcb138 (patch) | |
| tree | c8dfdc09ef3005759fe0235a6fb970a2507347de /gdocs.js | |
| parent | bc2ca384b1c44488c6e27c24f10111cc06113df9 (diff) | |
| download | angular.js-22dee3e27884f357654a470ce2afea08bedcb138.tar.bz2 | |
gdocs.js - add docos style comment stripping
Diffstat (limited to 'gdocs.js')
| -rwxr-xr-x | gdocs.js | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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, "'"); | 
