Skip to content

Commit 62d6009

Browse files
committed
fix(test): also match non-prefixed v versions on check
1 parent 3e20e52 commit 62d6009

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ def typesense_v30_or_above?
6262
return major_version >= 30
6363
end
6464

65+
if version.match(/^(\d+)/)
66+
major_version = Regexp.last_match(1).to_i
67+
return major_version >= 30
68+
end
69+
6570
false
6671
end
6772

0 commit comments

Comments
 (0)