mirror of https://github.com/sharkdp/fd.git
Small fix for ANSI code regex
This commit is contained in:
parent
f25c73c5de
commit
a76230b13d
|
@ -148,7 +148,7 @@ fn parse_dircolors(path: &Path) -> std::io::Result<ExtensionStyles> {
|
|||
.unwrap();
|
||||
|
||||
let pattern_ansi =
|
||||
Regex::new(r"^\.([A-Za-z0-9]+)\s*([0-9][0-9]);([0-9][0-9])\b")
|
||||
Regex::new(r"^\.([A-Za-z0-9]+)\s*(?:([0-9][0-9]);)?([0-9][0-9])\b")
|
||||
.unwrap();
|
||||
|
||||
for line in BufReader::new(file).lines() {
|
||||
|
|
Loading…
Reference in New Issue