The library seems to be generating different content in Microsoft Edge (for both SVG and PNG), causing the QR code to be corrupt. This seems to occur more often for longer content.
Code:
'use strict';
var qr = require('qr-image');
var uri = 'https://[::1]/apps/foo/index.html?qid=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855';
var image = qr.imageSync(uri, {type: 'svg'});
console.log(image);
The library seems to be generating different content in Microsoft Edge (for both SVG and PNG), causing the QR code to be corrupt. This seems to occur more often for longer content.
Code:
Output (in Microsoft Edge 13.10586):
Expected output (in IE 11, Chrome 49, and Firefox 45.0.2):