mirror of
https://github.com/sharkdp/bat
synced 2026-08-10 20:01:45 +00:00
530e83a455
When piped input has no filename hint, bat falls back to plain text. Many
common formats can be reliably identified by shebang or magic-string in the
first line (#!/bin/bash, <?xml, {"json: ...}, etc.). Adds a first-line
pattern matcher to assets.rs.
Fixes #3697