savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] [PATCH] gsv-eval.pl (analyze_source_code_files


From: Bruno Félix Rezende Ribeiro
Subject: [Savannah-hackers-public] [PATCH] gsv-eval.pl (analyze_source_code_files): Treat XML MIME types as text.
Date: Tue, 22 Sep 2015 22:32:20 -0300

---
 gsv-eval.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gsv-eval.pl b/gsv-eval.pl
index ae03872..08efe90 100755
--- a/gsv-eval.pl
+++ b/gsv-eval.pl
@@ -393,7 +393,7 @@ sub analyze_source_code_files
        foreach my $filename (@files) {
 
                my $type = $mimetypes{$filename};
-               if ($type !~ /^text\//) {
+               if ($type !~ /(^text\/|\+xml$|\/xml($|-))/) {
                        $licenses{$filename} = ["skipped (not-text)"];
                        $copyright_holder{$filename} = "skipped (not-text)";
                        next;
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]