Skip to content

Commit

Permalink
chore: formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Jan 10, 2025
1 parent d43febd commit 5a89942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/pathutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ impl Paths {
.split_whitespace() // Split at whitespaces to later replace all whitespaces with `-`
.map(|part| {
part.chars()
.filter(|&character| character.is_alphanumeric() || character == '-' || character == '_') // Remove any character that is not a `-` or alphanumeric
.filter(|&character| {
character.is_alphanumeric() || character == '-' || character == '_'
}) // Remove any character that is not a `-` or alphanumeric
.collect::<String>()
})
.collect::<Vec<String>>()
Expand Down

0 comments on commit 5a89942

Please sign in to comment.