File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ impl From<legacy::LandscapeData> for LandscapeData {
364
364
let mut additional_categories = vec ! [ ] ;
365
365
for entry in second_path {
366
366
// Extract category/subcategory from second path entry
367
- let parts: Vec < & str > = entry. split ( '/' ) . collect ( ) ;
367
+ let parts: Vec < & str > = entry. split ( " / " ) . collect ( ) ;
368
368
if parts. len ( ) != 2 {
369
369
warn ! ( "invalid second path entry ({entry}), ignoring it" ) ;
370
370
continue ;
@@ -1412,7 +1412,7 @@ mod tests {
1412
1412
joined: Some ( date) ,
1413
1413
project: Some ( "graduated" . to_string( ) ) ,
1414
1414
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( ) ] ) ,
1416
1416
twitter: Some ( "twitter_url" . to_string( ) ) ,
1417
1417
url_for_bestpractices: Some ( "url_for_bestpractices" . to_string( ) ) ,
1418
1418
unnamed_organization: Some ( false ) ,
You can’t perform that action at this time.
0 commit comments