rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.9k stars 280 forks source link

Backslashes removed in title e.g. C:\dev\alex\test.json -> C:devalex.json #525

Closed alexsuter closed 3 months ago

alexsuter commented 8 months ago

Step -1: Before filling an issue check out troubleshooting section

Step 0: Describe your environment

Step 1: Describe the problem:

Steps to reproduce:

  1. Use a patch with windows paths

diff example:

diff --git a/sample.js b/sample.js
index 0000001..0ddf2ba
--- C:\dev\alex.js
+++ b/sample.js
@@ -1 +1 @@
-console.log("Hello World!")
+console.log("Hello from Diff2Html!")

Observed Results:

Expected Results:

Relevant Code:

image

rtfpessoa commented 5 months ago

Cannot replicate the issue on my side. Also that diff seems manipulated since the header file has a different name from the one in the +++ tag. Also the +++ tag misses the a/ prefix.

Maybe something specific to windows? I don't have a way to test atm.

rtfpessoa commented 3 months ago

Closed due to inactivity