From 1337f7ae5c27983c732dd86bf1f11c04918eee62 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 14 May 2019 13:30:59 -0700 Subject: rust codegen and impl --- rust/src/identifiers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rust/src/identifiers.rs') diff --git a/rust/src/identifiers.rs b/rust/src/identifiers.rs index ae75c8a7..88e22960 100644 --- a/rust/src/identifiers.rs +++ b/rust/src/identifiers.rs @@ -275,7 +275,8 @@ fn test_check_doi() { pub fn check_arxiv_id(raw: &str) -> Result<()> { lazy_static! { - static ref RE: Regex = Regex::new(r"^(\d{4}.\d{4,5}|[a-z\-]+(\.[A-Z]{2})?/\d{7})v\d+$").unwrap(); + static ref RE: Regex = + Regex::new(r"^(\d{4}.\d{4,5}|[a-z\-]+(\.[A-Z]{2})?/\d{7})v\d+$").unwrap(); } if raw.is_ascii() && RE.is_match(raw) { Ok(()) -- cgit v1.2.3