[devdocsgjs/main: 178/239] openjdk: fix get_latest_version




commit 6bcdaaafbb08b667089adacb92fa579f438d3311
Author: Simon Legner <Simon Legner gmail com>
Date:   Mon Feb 21 19:49:30 2022 +0100

    openjdk: fix get_latest_version

 lib/docs/scrapers/openjdk.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/docs/scrapers/openjdk.rb b/lib/docs/scrapers/openjdk.rb
index 8bd5e719..03142aca 100644
--- a/lib/docs/scrapers/openjdk.rb
+++ b/lib/docs/scrapers/openjdk.rb
@@ -133,10 +133,10 @@ module Docs
 
     def get_latest_version(opts)
       doc = fetch_doc("https://jdk.java.net/archive/";, opts)
-      puts doc
       version = doc.at_css('#downloads > table > tr > th').content
       version.gsub!(/\(.*\)/, '')
       version.gsub!(/[a-zA-z]/, '')
+      version
     end
   end
 end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]