Skip to content

Commit

Permalink
Merge pull request #10 from nfurfaro/hotfix/regex-fix
Browse files Browse the repository at this point in the history
Hotfix/regex fix
  • Loading branch information
nfurfaro authored Feb 15, 2024
2 parents 12fc1d2 + 79d898a commit 46b62f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hunter"
version = "1.1.1"
version = "1.1.2"
edition = "2021"
rust-version = "1.74.0"
authors = ["Nick Furfaro <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use regex::Regex;

pub fn test_regex(language: &Language) -> Regex {
match language {
Language::Noir => Regex::new(r"#\[test(\(\))?\]\s+fn\s+\w+\(\)\s*\{[^}]*\}").unwrap(),
Language::Noir => Regex::new(r"#\[test(\(.*\))?\]\s+fn\s+\w+\(\)\s*\{[^}]*\}").unwrap(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ mod tests {
let pattern = test_regex(&Language::Noir);
assert_eq!(
pattern.as_str(),
r"#\[test(\(\))?\]\s+fn\s+\w+\(\)\s*\{[^}]*\}"
r"#\[test(\(.*\))?\]\s+fn\s+\w+\(\)\s*\{[^}]*\}"
);
}

Expand Down

0 comments on commit 46b62f0

Please sign in to comment.