Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

patch_obj.toString blows up with emojis #68

Open
d4rkr00t opened this issue Jun 20, 2019 · 0 comments
Open

patch_obj.toString blows up with emojis #68

d4rkr00t opened this issue Jun 20, 2019 · 0 comments

Comments

@d4rkr00t
Copy link

encodeURI blows up for some patch_obj:

diff_match_patch.patch_obj.prototype.toString = function() {

Example:

let diff_match_patch = require("diff-match-patch");

let text1 = "🅱";
let text2 = "🅰";

let diff = new diff_match_patch();
console.log(diff.patch_toText(diff.patch_make(text1, text2)));
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant