mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
+ also have an old method in place. (Have a separate SemVerMatcher for parsing semver versions in 2 variants: strict or partial. Fixes SemVerTest)
This commit is contained in:
@@ -85,6 +85,11 @@ public class SemVer implements Comparable<SemVer> {
|
||||
return myRawVersion;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static SemVer parseFromText(@NotNull String text) {
|
||||
return SemVerMatcher.parseFromText(text);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static SemVer parseFromTextNonNullize(@Nullable final String text) {
|
||||
if (text == null) return UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user