From 798b95785a990f817bf2543a63ea470e18ea9a60 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 19 Jul 2017 00:26:20 +0200 Subject: [PATCH] Remove outdated source file --- libimagentrytag/src/lib.rs | 1 - libimagentrytag/src/util.rs | 24 ------------------------ 2 files changed, 25 deletions(-) delete mode 100644 libimagentrytag/src/util.rs diff --git a/libimagentrytag/src/lib.rs b/libimagentrytag/src/lib.rs index 6cac9690..bfc4d461 100644 --- a/libimagentrytag/src/lib.rs +++ b/libimagentrytag/src/lib.rs @@ -48,6 +48,5 @@ pub mod exec; pub mod result; pub mod tag; pub mod tagable; -pub mod util; pub mod ui; diff --git a/libimagentrytag/src/util.rs b/libimagentrytag/src/util.rs deleted file mode 100644 index d0d31db2..00000000 --- a/libimagentrytag/src/util.rs +++ /dev/null @@ -1,24 +0,0 @@ -// -// imag - the personal information management suite for the commandline -// Copyright (C) 2015, 2016 Matthias Beyer and contributors -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; version -// 2.1 of the License. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -// - -use regex::Regex; - -pub fn is_tag(s: &str) -> bool { - Regex::new("^[a-zA-Z]([a-zA-Z0-9_-]*)$").unwrap().captures(s).is_some() -}