diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:30:59 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:30:59 -0700 |
commit | 1337f7ae5c27983c732dd86bf1f11c04918eee62 (patch) | |
tree | 98034885b2f5f110548c77a725b9b84d6245eece /rust/src/identifiers.rs | |
parent | 3aeea90aabe6384f84aba835e93b8f7e0d68e009 (diff) | |
download | fatcat-1337f7ae5c27983c732dd86bf1f11c04918eee62.tar.gz fatcat-1337f7ae5c27983c732dd86bf1f11c04918eee62.zip |
rust codegen and impl
Diffstat (limited to 'rust/src/identifiers.rs')
-rw-r--r-- | rust/src/identifiers.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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(()) |