Skip to content

Commit

Permalink
Remove null char from tag query
Browse files Browse the repository at this point in the history
Gets rid of the occasional error message in logs from misbehaving clients
  • Loading branch information
Earlopain committed Jan 23, 2024
1 parent 6ca7db0 commit 75a5359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn validate_transform_tag(tag: &str) -> Result<String, AutocompleteError> {
.nfc()
.collect::<String>()
.to_lowercase()
.replace(['*', '%'], "")
.replace(['*', '%', '\0'], "")
.chars()
.filter(|x| !x.is_whitespace())
.collect();
Expand Down

0 comments on commit 75a5359

Please sign in to comment.