Skip to content

Commit

Permalink
Merge pull request #41 from mrbianchi/refactor-listing-title-control
Browse files Browse the repository at this point in the history
ref(validate_create_listing)
  • Loading branch information
mattyg authored Jun 21, 2023
2 parents 9fa37f1 + 568f5ac commit 2262898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnas/directory/zomes/integrity/directory/src/listing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn validate_create_listing(
}

// Listing title contains no whitespace, is alphanumeric
if !listing.title.chars().all(|c| !char::is_whitespace(c) && char::is_alphanumeric(c)) {
if !listing.title.chars().all(|c| char::is_alphanumeric(c)) {
return Ok(ValidateCallbackResult::Invalid("Title can only contain alphanumeric characters, and no spaces".into()));
}

Expand Down

0 comments on commit 2262898

Please sign in to comment.