mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Allow any non-space characters as quoted user name
This commit is contained in:
parent
fccc97bca2
commit
418d68de49
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ impl FromStr for DiarioArgs {
|
||||||
type Err = anyhow::Error;
|
type Err = anyhow::Error;
|
||||||
|
|
||||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||||
static REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#" *(?:\[(?<warning>.+)])? *"(?<quote>.+)"[, ]*(?:[-–—]+(?<quoted>\w+)(?:, *(?<context>.+))?)?"#).unwrap());
|
static REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r#" *(?:\[(?<warning>.+)])? *"(?<quote>.+)"[, ]*(?:[-–—]+(?<quoted>[^\n,]+)(?:, *(?<context>.+))?)?"#).unwrap());
|
||||||
|
|
||||||
let captures = REGEX.captures(s);
|
let captures = REGEX.captures(s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue