Skip to content

Commit

Permalink
Merge pull request #211 from Enraged-Dun-Cookie-Development-Team/feat…
Browse files Browse the repository at this point in the history
…-bvFormat

🐛 修复bv号格式改变
  • Loading branch information
phidiaLam authored Sep 30, 2024
2 parents 1db1593 + f6c3476 commit 5973bda
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ use regex::Regex;
use super::CheckError;

static BV_PATTEN: Lazy<Regex> = Lazy::new(|| {
Regex::new(
r#"^BV1[A-Za-z0-9]{2}4[A-Za-z0-9]1[A-Za-z0-9]7[A-Za-z0-9]{2}$"#,
)
.expect("正则表达式格式错误")
Regex::new(r#"^BV[a-zA-Z0-9]{10}$"#).expect("正则表达式格式错误")
});

#[derive(PartialEq, Eq)]
Expand Down

0 comments on commit 5973bda

Please sign in to comment.