/// Macro to generate a ConstRegexPattern
///
-/// ```ignore
+/// ```
+/// # #[macro_use]
+/// # use proxmox_api::*;
+/// #
/// const_regex!{
/// FILE_EXTENSION_REGEX = r".*\.([a-zA-Z]+)$";
/// pub SHA256_HEX_REGEX = r"^[a-f0-9]{64}$";
($($pub:tt)*) $(#[$attr:meta])* $name:ident = $regex:expr;
$($rest:tt)*
) => {
- $(#[$attr])* $($pub)* const $name: $crate::schema::ConstRegexPattern =
- $crate::schema::ConstRegexPattern {
+ $(#[$attr])* $($pub)* const $name: $crate::const_regex::ConstRegexPattern =
+ $crate::const_regex::ConstRegexPattern {
regex_string: $regex,
regex_obj: (|| -> &'static ::regex::Regex {
::lazy_static::lazy_static! {