trim newlines in ssh key
This commit is contained in:
		
							parent
							
								
									f5bf777b2e
								
							
						
					
					
						commit
						8e9478ebc6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -175,7 +175,7 @@ impl std::str::FromStr for SshPubkey { | |||
|         if !BASE64_RE.is_match(key_data) { | ||||
|             return Err(SshPubkeyParseError::InvalidKeyData); | ||||
|         } | ||||
|         let comment = pieces.next().map(|s| s.to_owned()); | ||||
|         let comment = pieces.next().map(|s| s.trim().to_owned()); | ||||
| 
 | ||||
|         Ok(Self { | ||||
|             id: None, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue