1 2 3 4 5 6 7 8 9 10 11 12 13
// SPDX-FileCopyrightText: 2021 Robin Vobruba <hoijui.quaero@gmail.com> // // SPDX-License-Identifier: AGPL-3.0-or-later macro_rules! rgx { ($re:literal $(,)?) => {{ static RE: std::sync::LazyLock<regex::Regex> = std::sync::LazyLock::new(|| regex::Regex::new($re).unwrap()); &*RE }}; } pub(crate) use rgx;