prettydiff icon indicating copy to clipboard operation
prettydiff copied to clipboard

Drop exception if string has \n or \r

Open artemov34 opened this issue 5 years ago • 0 comments

https://github.com/prettydiff/prettydiff/blob/0d5b434434f13377f80470924fb36d9ebb0b0233/beautify/markup.ts#L562

angular.js?7245:15570 TypeError: Cannot read property 'indexOf' of undefined at beautify_markup_apply_multiline_lev (eval at module.exports (addScript.js?3fe7:27), :12572:27) at beautify_markup_apply_multiline (eval at module.exports (addScript.js?3fe7:27), :12577:22) at beautify_markup_apply (eval at module.exports (addScript.js?3fe7:27), :12631:25) at Object.beautify_markup [as markup] (eval at module.exports (addScript.js?3fe7:27), :12667:10) at mode (eval at module.exports (addScript.js?3fe7:27), :2030:70)

Need to check data.types[bb] && data.types[bb].indexOf("start") > -1

artemov34 avatar Apr 09 '20 09:04 artemov34