Skip to content

Commit 64f6609

Browse files
authored
Minor improvement processing items second path (#744)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent 0bb10f2 commit 64f6609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core/src/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl From<legacy::LandscapeData> for LandscapeData {
364364
let mut additional_categories = vec![];
365365
for entry in second_path {
366366
// Extract category/subcategory from second path entry
367-
let parts: Vec<&str> = entry.split('/').collect();
367+
let parts: Vec<&str> = entry.split(" / ").collect();
368368
if parts.len() != 2 {
369369
warn!("invalid second path entry ({entry}), ignoring it");
370370
continue;
@@ -1412,7 +1412,7 @@ mod tests {
14121412
joined: Some(date),
14131413
project: Some("graduated".to_string()),
14141414
repo_url: Some("repo_url".to_string()),
1415-
second_path: Some(vec!["category2/subcategory2.1".to_string()]),
1415+
second_path: Some(vec!["category2 / subcategory2.1".to_string()]),
14161416
twitter: Some("twitter_url".to_string()),
14171417
url_for_bestpractices: Some("url_for_bestpractices".to_string()),
14181418
unnamed_organization: Some(false),

0 commit comments

Comments
 (0)