Skip to content

Commit aa029fe

Browse files
Merge pull request #35 from magnusbaeck/error-message-typo
Correct minor error message typo in PackageURL#validateType()
2 parents 56f1167 + fb171e5 commit aa029fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/github/packageurl/PackageURL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private String validateType(final String value) throws MalformedPackageURLExcept
235235
throw new MalformedPackageURLException("The PackageURL type cannot be null or empty");
236236
}
237237
if (value.charAt(0) >= '0' && value.charAt(0) <= '9') {
238-
throw new MalformedPackageURLException("The PackageURL type contains start with a number");
238+
throw new MalformedPackageURLException("The PackageURL type cannot start with a number");
239239
}
240240
final String retVal = value.toLowerCase();
241241
if (retVal.chars().anyMatch(c -> !(c == '.' || c == '+' || c == '-'

0 commit comments

Comments
 (0)