repair pub-date in livecheck
This commit is contained in:
parent
05c5f6a6d4
commit
6720f8bd1e
@ -75,7 +75,7 @@ module Homebrew
|
|||||||
version ||= (item > "version").first&.text&.strip
|
version ||= (item > "version").first&.text&.strip
|
||||||
|
|
||||||
title = (item > "title").first&.text&.strip
|
title = (item > "title").first&.text&.strip
|
||||||
pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d| Time.parse(d) }
|
pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d| Time.parse(d) } || Time.new(0)
|
||||||
|
|
||||||
if (match = title&.match(/(\d+(?:\.\d+)*)\s*(\([^)]+\))?\Z/))
|
if (match = title&.match(/(\d+(?:\.\d+)*)\s*(\([^)]+\))?\Z/))
|
||||||
short_version ||= match[1]
|
short_version ||= match[1]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user