mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-14 00:43:51 +01:00
feat: match version numbers
This commit is contained in:
parent
646ee8b9fb
commit
0e0e581f86
4 changed files with 12 additions and 17 deletions
|
|
@ -7,7 +7,7 @@ pub const EXCLUDE_PATTERNS: [(&str, &str); 1] =
|
|||
///
|
||||
/// The email address was obtained at https://www.regular-expressions.info/email.html.
|
||||
/// Others were obtained from Ferran Basora.
|
||||
pub const PATTERNS: [(&str, &str); 15] = [
|
||||
pub const PATTERNS: [(&str, &str); 16] = [
|
||||
("markdown-url", r"\[[^]]*\]\(([^)]+)\)"),
|
||||
(
|
||||
"url",
|
||||
|
|
@ -23,6 +23,10 @@ pub const PATTERNS: [(&str, &str); 15] = [
|
|||
"uuid",
|
||||
r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
|
||||
),
|
||||
(
|
||||
"version",
|
||||
r"(v?\d{1,4}\.\d{1,4}(\.\d{1,4})?(-(alpha|beta|rc)(\.\d)?)?)[^.0-9s]",
|
||||
),
|
||||
("ipfs", r"Qm[0-9a-zA-Z]{44}"),
|
||||
("sha", r"[0-9a-f]{7,40}"),
|
||||
("ipv4", r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue