[Git][reproducible-builds/diffoscope][master] Fix json detection with file-5.41-3.fc36.x86_64

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Thu Jan 20 13:46:23 UTC 2022



Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope


Commits:
0c124437 by Zbigniew Jędrzejewski-Szmek at 2022-01-20T11:03:38+01:00
Fix json detection with file-5.41-3.fc36.x86_64

It now says "JSON text data", not just "JSON data".

- - - - -


1 changed file:

- diffoscope/comparators/json.py


Changes:

=====================================
diffoscope/comparators/json.py
=====================================
@@ -38,7 +38,7 @@ except ImportError:  # noqa
 
 class JSONFile(File):
     DESCRIPTION = "JSON files"
-    FILE_TYPE_RE = re.compile(r"^JSON data")  # Requires file 5.35+
+    FILE_TYPE_RE = re.compile(r"^JSON (?:text )?data")  # Requires file 5.35+
 
     @classmethod
     def recognizes(cls, file):



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0c124437e136cc9fac4829ba0c71fd8849d50e5e

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0c124437e136cc9fac4829ba0c71fd8849d50e5e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20220120/ac1c639d/attachment.htm>


More information about the rb-commits mailing list