From e6d14b907f234af068bce0da65e73effccf0bee7 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 15 Jun 2021 08:34:32 +0200 Subject: [PATCH] tools: make bump script recognize the version string in the new README --- bump-mattermost.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bump-mattermost.rb b/bump-mattermost.rb index ae25026..34c4f86 100755 --- a/bump-mattermost.rb +++ b/bump-mattermost.rb @@ -97,7 +97,7 @@ module Yunohost def update_with_version(version) readme = File.read(@path) - readme.gsub!(/(.*)<\/span>/, "#{version}") + readme.gsub!(/[0-9\.]+~ynh[0-9]+/, "#{version}~ynh1") File.write(@path, readme) end end