Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sharkdp/lscolors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 423ccd145fd3ecd355cdb02d746d4c4938dcf86b
Choose a base ref
..
head repository: sharkdp/lscolors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9d35150630f8a2ebce59bdb9682dd3d7c93b88c2
Choose a head ref
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/integration_tests.rs
2 changes: 2 additions & 0 deletions tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@ fn get_ls_style(ls_colors_env: Option<&str>, path: &str) -> Option<Style> {

let output_gnu_ls = String::from_utf8(output_gnu_ls).expect("valid UTF-8 output from ls");

eprint!("[GNU ls output] = {}", &output_gnu_ls);

let style_str = output_gnu_ls.trim().trim_start_matches("\x1b[0m\x1b[");

let end_of_ansi_code = style_str.find(&format!("m{path}", path = path))?;