Differences From Artifact [b3f83f0747]:
- File src/command.rs — part of check-in [093ae6c75b] at 2022-02-15 14:56:35 on branch trunk — simplify a little (user: arcade, size: 3767) [annotate] [blame] [check-ins using]
To Artifact [1edeb585ee]:
- File src/command.rs — part of check-in [28da2e2a00] at 2022-03-12 13:25:36 on branch trunk — bump, update config (user: arcade, size: 3797) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 | + |
use anyhow::{bail, Context, Result};
use crate::core::Core;
use lazy_static::lazy_static;
use regex::Regex;
use sedregex::ReplaceCommand;
use std::borrow::Cow;
lazy_static! {
static ref RE_USERNAME: Regex = Regex::new(r"^@[a-zA-Z][a-zA-Z0-9_]+$").unwrap();
static ref RE_LINK: Regex = Regex::new(r"^https?://[a-zA-Z.0-9-]+/[-_a-zA-Z.0-9/?=]+$").unwrap();
|
| ︙ |