change how filenames beginning with _ are tested for

This commit is contained in:
ConnorSkees 2020-06-22 10:31:01 -04:00
parent 6f4b8a935f
commit c031d42f41

View File

@ -56,7 +56,7 @@ impl<'a> Parser<'a> {
let paths = [ let paths = [
path_buf.with_file_name(name).with_extension("scss"), path_buf.with_file_name(name).with_extension("scss"),
path_buf.with_file_name(format!("_{}.scss", name.to_str().unwrap())), path_buf.with_file_name(format!("_{}", name.to_str().unwrap())).with_extension("scss"),
path_buf.clone(), path_buf.clone(),
path_buf.join("index.scss"), path_buf.join("index.scss"),
path_buf.join("_index.scss"), path_buf.join("_index.scss"),