Skip to content

Commit ba97550

Browse files
committed
fix: check for => in go.mod
Signed-off-by: Luke-zhang-04 <[email protected]>
1 parent 2677401 commit ba97550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/onefetch/deps/package_parser.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub fn cargo(contents: &str) -> Result<usize> {
1212
}
1313

1414
pub fn go_modules(contents: &str) -> Result<usize> {
15-
let count = Regex::new(r"v[0-9]+")?.find_iter(contents).count();
15+
let count = Regex::new(r"v[0-9]+")?.find_iter(contents).count()
16+
- Regex::new(r"=>")?.find_iter(contents).count();
1617

1718
Ok(count)
1819
}

0 commit comments

Comments
 (0)