 Issue 29606600:
  Issue 5146 - Implement DownloadableSubscription parsing in C++  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore/
    
  
    Issue 29606600:
  Issue 5146 - Implement DownloadableSubscription parsing in C++  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore/| Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 1 "use strict"; | 1 "use strict"; | 
| 2 | 2 | 
| 3 const crypto = require("crypto"); | |
| 4 | |
| 5 exports.Utils = { | 3 exports.Utils = { | 
| 6 generateChecksum(lines) | |
| 7 { | |
| 8 let buffer = new Buffer(lines.join("\n"), "utf-8"); | |
| 9 let hash = crypto.createHash("md5"); | |
| 10 hash.update(buffer); | |
| 11 return hash.digest("base64").replace(/=+$/, ""); | |
| 12 }, | |
| 13 yield() {} | 4 yield() {} | 
| 14 }; | 5 }; | 
| OLD | NEW |