Skip to content

Commit

Permalink
Minor improvement processing items second path (#744)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
  • Loading branch information
tegioz authored Nov 4, 2024
1 parent 0bb10f2 commit 64f6609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ impl From<legacy::LandscapeData> for LandscapeData {
let mut additional_categories = vec![];
for entry in second_path {
// Extract category/subcategory from second path entry
let parts: Vec<&str> = entry.split('/').collect();
let parts: Vec<&str> = entry.split(" / ").collect();
if parts.len() != 2 {
warn!("invalid second path entry ({entry}), ignoring it");
continue;
Expand Down Expand Up @@ -1412,7 +1412,7 @@ mod tests {
joined: Some(date),
project: Some("graduated".to_string()),
repo_url: Some("repo_url".to_string()),
second_path: Some(vec!["category2/subcategory2.1".to_string()]),
second_path: Some(vec!["category2 / subcategory2.1".to_string()]),
twitter: Some("twitter_url".to_string()),
url_for_bestpractices: Some("url_for_bestpractices".to_string()),
unnamed_organization: Some(false),
Expand Down

0 comments on commit 64f6609

Please sign in to comment.