summaryrefslogtreecommitdiffstats
path: root/src/verb/mod.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-06-02 13:45:12 +0200
committerCanop <cano.petrole@gmail.com>2021-06-02 13:45:12 +0200
commit77f40f74c38392a5213f99006138d74772ac5c6c (patch)
tree145732e2e45e0dd3bf17e2a2f3e07027cc5d3338 /src/verb/mod.rs
parent7635373786d1c0fbc45c326d4a0a8914396f7051 (diff)
make the number of threads used for file summing configurable
Also replace lazy_static with once_cell
Diffstat (limited to 'src/verb/mod.rs')
-rw-r--r--src/verb/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/verb/mod.rs b/src/verb/mod.rs
index cb480bf..a0fe0ba 100644
--- a/src/verb/mod.rs
+++ b/src/verb/mod.rs
@@ -22,6 +22,7 @@ pub use {
internal::Internal,
internal_execution::InternalExecution,
invocation_parser::InvocationParser,
+ once_cell::sync::Lazy,
sequence_execution::SequenceExecution,
verb::Verb,
verb_description::VerbDescription,
@@ -29,13 +30,12 @@ pub use {
verb_invocation::*,
verb_store::{PrefixSearchResult, VerbStore},
};
+use {
+ lazy_regex::*,
+};
-
-// the group you find in invocation patterns and execution patterns
-lazy_static::lazy_static! {
- pub static ref GROUP: regex::Regex =
- regex::Regex::new(r"\{([^{}:]+)(?::([^{}:]+))?\}").unwrap();
-}
+/// the group you find in invocation patterns and execution patterns
+pub static GROUP: Lazy<Regex> = lazy_regex!(r"\{([^{}:]+)(?::([^{}:]+))?\}");
pub fn str_has_selection_group(s: &str) -> bool {
GROUP.find_iter(s)