diff --git a/core/src/main/java/org/owasp/dependencycheck/analyzer/CarthageAnalyzer.java b/core/src/main/java/org/owasp/dependencycheck/analyzer/CarthageAnalyzer.java index 3ed1307fa2d..05d711a49d3 100644 --- a/core/src/main/java/org/owasp/dependencycheck/analyzer/CarthageAnalyzer.java +++ b/core/src/main/java/org/owasp/dependencycheck/analyzer/CarthageAnalyzer.java @@ -94,7 +94,8 @@ public class CarthageAnalyzer extends AbstractFileTypeAnalyzer { * @@ -109,8 +110,11 @@ public class CarthageAnalyzer extends AbstractFileTypeAnalyzer { /** * Capture group #1 is the dependency name. * - * Example values: - robbiehanson/XMPPFramework - - * CocoaLumberjack/CocoaLumberjack + * Example values: + * */ private static final Pattern CARTFILE_RESOLVED_GITHUB_DEPENDENCY = Pattern.compile("[a-zA-Z0-9-_]+/([a-zA-Z0-9\\-_\\.]+)"); @@ -122,9 +126,13 @@ public class CarthageAnalyzer extends AbstractFileTypeAnalyzer { /** * Capture group #1 is the dependency name. * - * Example values: - https://my.domain.com/release/MyFramework.json - - * file:///some/Path/MyFramework.json - relative/path/MyFramework.json - - * /absolute/path/MyFramework.json + * Example values: + * */ private static final Pattern CARTFILE_RESOLVED_BINARY_DEPENDENCY = Pattern.compile("([a-zA-Z0-9\\-_\\.]+).json");