Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix calculation of DEV part in version.rb, drop PRE (#36995)

Penar Musaraj723e872556ef
diff --git a/lib/version.rb b/lib/version.rb
index 53e6d3bcacf..b88e5de5794 100644
--- a/lib/version.rb
+++ b/lib/version.rb
@@ -15,8 +15,7 @@ module Discourse
MAJOR = PARTS[0].to_i
MINOR = PARTS[1].to_i
TINY = PARTS[2].to_i
- PRE = PARTS[3]&.split("-", 2)&.[](0)
- DEV = PARTS[3]&.split("-", 2)&.[](1)
+ DEV = PARTS[2]&.split("-", 2)&.[](1)
end
end