From 2b96989122a92ca5ce9715328a6b21fa33421d31 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 7 Oct 2012 12:03:12 +0200 Subject: scripts/mimetype: detect ascii with long lines correctly Signed-off-by: Florian Pritz --- scripts/mimetype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/mimetype b/scripts/mimetype index 3c0c17e9b..330f96ef0 100755 --- a/scripts/mimetype +++ b/scripts/mimetype @@ -27,7 +27,7 @@ if (!$type) { # detect ascii with color codes $file_type = `file -b $file`; chomp $file_type; - if ($file_type eq "ASCII text, with escape sequences") { + if ($file_type =~ m/ASCII text, (?:with very long lines, )?with escape sequences/) { $type = "text/plain-ascii"; } } -- cgit v1.2.3-24-g4f1b