Skip to content

Commit 166fb3b

Browse files
committed
bug: SP-1408 Fixes bug on detecting dependencies in pom.xml files
1 parent 9de8306 commit 166fb3b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Diff for: CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.15.2](https://github.com/scanoss/scanoss.js/compare/v0.15.1...v0.15.2) (2024-08-29)
6+
7+
### [0.15.1](https://github.com/scanoss/scanoss.js/compare/v0.15.0...v0.15.1) (2024-08-27)
8+
9+
### [0.15.0](https://github.com/scanoss/scanoss.js/compare/v0.14.1...v0.15.0) (2024-07-28)
10+
511
### [0.14.1](https://github.com/scanoss/scanoss.js/compare/v0.14.0...v0.14.1) (2024-06-05)
612

713
### [0.14.0](https://github.com/scanoss/scanoss.js/compare/v0.13.2...v0.14.0) (2024-05-23)

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scanoss",
3-
"version": "0.15.1",
3+
"version": "0.15.2",
44
"description": "The SCANOSS JS package provides a simple, easy to consume module for interacting with SCANOSS APIs/Engine.",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",

Diff for: src/sdk/Dependencies/LocalDependency/parsers/mavenParser.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export function pomParser(fileContent: string, filePath: string): Promise<ILocal
1515
if(path.basename(filePath) != MANIFEST_FILE)
1616
return Promise.resolve(results);
1717

18-
const dependencies = fileContent.match(/<dependency>((?:.|\n)*?)<\/dependency>/gm);
19-
if(dependencies) {
2018

19+
const dependencies = fileContent.match(/<dependency>[\s\S]*?<\/dependency>/gm);
20+
if(dependencies) {
2121
dependencies.forEach(dependency => {
2222
// Extract groupId. It's the purl namespace
2323
const groupId = dependency.match(/<groupId>([^<]*)<\/groupId>/);

0 commit comments

Comments
 (0)