From 37e24b78469a33a1878354a5e18a0334fb727011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20B=C3=BClthoff?= <232148+frederikb@users.noreply.github.com> Date: Thu, 12 Oct 2023 14:51:08 +0200 Subject: [PATCH] F - Extend list of known text file extensions Adds built-in support for: - JSON Lines - YAML - Asciidoc --- .../java/org/approvaltests/reporters/GenericDiffReporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/approvaltests/src/main/java/org/approvaltests/reporters/GenericDiffReporter.java b/approvaltests/src/main/java/org/approvaltests/reporters/GenericDiffReporter.java index f6282e58..bde2d94c 100644 --- a/approvaltests/src/main/java/org/approvaltests/reporters/GenericDiffReporter.java +++ b/approvaltests/src/main/java/org/approvaltests/reporters/GenericDiffReporter.java @@ -22,7 +22,7 @@ public class GenericDiffReporter implements ApprovalFailureReporter protected String diffProgramNotFoundMessage; private List validExtensions; public static List TEXT_FILE_EXTENSIONS = Arrays.asList(".txt", ".csv", ".htm", ".html", ".xml", ".eml", - ".java", ".css", ".js", ".json", ".md"); + ".java", ".css", ".js", ".json", ".md", ".jsonl", ".yaml", ".yml", ".adoc", ".asciidoc"); public static List IMAGE_FILE_EXTENSIONS = Arrays.asList(".png", ".gif", ".jpg", ".jpeg", ".bmp", ".tif", ".tiff"); public GenericDiffReporter(String diffProgram)