We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b2f61 commit 97d31b6Copy full SHA for 97d31b6
1 file changed
server/src/collection/mod.rs
@@ -391,16 +391,7 @@ impl Collection {
391
let modified = keyring.modified_time().await;
392
let created = keyring.created_time().await.unwrap_or(modified);
393
394
- let sanitized_label = label
395
- .chars()
396
- .map(|c| {
397
- if c.is_ascii_alphanumeric() || c == '_' {
398
- c
399
- } else {
400
- '_'
401
- }
402
- })
403
- .collect::<String>();
+ let sanitized_label = label.replace(|c: char| !c.is_ascii_alphanumeric() && c != '_', "_");
404
405
Self {
406
items: Default::default(),
0 commit comments