summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-10-07 12:03:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-10-07 12:03:12 +0200
commit2b96989122a92ca5ce9715328a6b21fa33421d31 (patch)
tree20b7cb2c3e5fca3fdc330248eb579b31e8caea48
parent362a7edde3590c45fd773920598294eae5418d7a (diff)
scripts/mimetype: detect ascii with long lines correctly
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xscripts/mimetype2
1 files changed, 1 insertions, 1 deletions
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";
}
}