We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44acff7 commit 6370519Copy full SHA for 6370519
src/test/java/org/typesense/api/Helper.java
@@ -55,11 +55,11 @@ public static boolean isV30OrAbove(Client client) {
55
return true;
56
}
57
58
- if (!versionStr.startsWith("v")) {
59
- return false;
+ String numberedVersion = versionStr;
+ if (versionStr.startsWith("v")) {
60
+ numberedVersion = versionStr.substring(1);
61
62
- String numberedVersion = versionStr.substring(1);
63
String[] parts = numberedVersion.split("\\.");
64
if (parts.length == 0) {
65
return false;
0 commit comments