Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Correctly name git repos on Windows

+5 -1
+1 -1
compiler-cli/src/dependencies.rs
··· 1104 1104 let name = repo 1105 1105 .trim_end_matches('/') 1106 1106 .trim_end_matches(".git") 1107 - .rsplit(['/', ':']) 1107 + .rsplit(['/', ':', '\\']) 1108 1108 .next() 1109 1109 .filter(|name| !name.is_empty()) 1110 1110 .unwrap_or("repo");
+4
compiler-cli/src/dependencies/tests.rs
··· 1023 1023 git_repo_dir_name("git@github.com:gleam-lang/gleam.git"), 1024 1024 "gleam-102c9e1e5cf87965" 1025 1025 ); 1026 + assert_eq!( 1027 + git_repo_dir_name("C:\\src\\gleam.git"), 1028 + "gleam-ab03c1f252f639da" 1029 + ); 1026 1030 } 1027 1031 1028 1032 #[test]