Skip to content

Commit 34294e0

Browse files
committed
Allow '+' in keywords
For example: keywords = ["c++"].
1 parent bfaf988 commit 34294e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/keyword.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Keyword {
5656
Some(c) => c,
5757
};
5858
first.is_ascii_alphanumeric()
59-
&& chars.all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '-')
59+
&& chars.all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '-' || c == '+')
6060
}
6161

6262
pub fn update_crate(conn: &PgConnection, krate: &Crate, keywords: &[&str]) -> QueryResult<()> {

0 commit comments

Comments
 (0)