Escape '+' character in regexp.
This commit is contained in:
parent
892fe49a68
commit
9e0a5d7c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ use super::error::{Error, ParseError, Result};
|
|||
use super::types::*;
|
||||
|
||||
pub fn parse_authenticate_response(line: String) -> Result<String> {
|
||||
let authenticate_regex = Regex::new("^+(.*)\r\n").unwrap();
|
||||
let authenticate_regex = Regex::new("^\\+(.*)\r\n").unwrap();
|
||||
|
||||
if let Some(cap) = authenticate_regex.captures_iter(line.as_str()).next() {
|
||||
let data = cap.get(1).map(|x| x.as_str()).unwrap_or("");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue