Skip to content
Snippets Groups Projects
Commit 0c124437 authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek
Browse files

Fix json detection with file-5.41-3.fc36.x86_64

It now says "JSON text data", not just "JSON data".
parent 88643fab
No related branches found
No related tags found
1 merge request!100Fix json detection with file-5.41-3.fc36.x86_64
Pipeline #339374 passed
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment