diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-10-07 12:03:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-10-07 12:03:12 +0200 |
commit | 2b96989122a92ca5ce9715328a6b21fa33421d31 (patch) | |
tree | 20b7cb2c3e5fca3fdc330248eb579b31e8caea48 /scripts | |
parent | 362a7edde3590c45fd773920598294eae5418d7a (diff) |
scripts/mimetype: detect ascii with long lines correctly
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mimetype | 2 |
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"; } } |