[diffoscope] 04/04: Also look for "[" when fuzzy-matching JSON.

Chris Lamb chris at chris-lamb.co.uk
Wed Jan 24 03:45:02 CET 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit de1abeae19067539c8d45758e657634762589451
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Jan 24 13:44:40 2018 +1100

    Also look for "[" when fuzzy-matching JSON.
---
 diffoscope/comparators/json.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/json.py b/diffoscope/comparators/json.py
index d942aa7..5baef34 100644
--- a/diffoscope/comparators/json.py
+++ b/diffoscope/comparators/json.py
@@ -36,7 +36,7 @@ class JSONFile(File):
             )
             if is_text and not file.name.endswith('.json'):
                 buf = f.read(10)
-                if not any(x in buf for x in '{'):
+                if not any(x in buf for x in '{['):
                     return False
                 f.seek(0)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list