Skip to content

Commit 28eaddd

Browse files
committed
fix: allow various formatting styles for macro in testing regex
1 parent cb4218b commit 28eaddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/stackable-versioned-macros/src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::versioned_impl;
1515
const DELIMITER: &str = "// ---\n";
1616

1717
static REGEX: LazyLock<Regex> = LazyLock::new(|| {
18-
Regex::new(r"#\[versioned\(\n(?P<args>[[:ascii:]]+)\n\)\]")
18+
Regex::new(r"#\[versioned\(\s*(?P<args>[[:ascii:]]+)\s*\)\]")
1919
.expect("failed to compile versioned regex")
2020
});
2121

0 commit comments

Comments
 (0)