We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56f1167 commit fb171e5Copy full SHA for fb171e5
1 file changed
src/main/java/com/github/packageurl/PackageURL.java
@@ -235,7 +235,7 @@ private String validateType(final String value) throws MalformedPackageURLExcept
235
throw new MalformedPackageURLException("The PackageURL type cannot be null or empty");
236
}
237
if (value.charAt(0) >= '0' && value.charAt(0) <= '9') {
238
- throw new MalformedPackageURLException("The PackageURL type contains start with a number");
+ throw new MalformedPackageURLException("The PackageURL type cannot start with a number");
239
240
final String retVal = value.toLowerCase();
241
if (retVal.chars().anyMatch(c -> !(c == '.' || c == '+' || c == '-'
0 commit comments