diff --git a/lib/tasks/changelog_task.rb b/lib/tasks/changelog_task.rb index 053c9d182..1edfb25d2 100644 --- a/lib/tasks/changelog_task.rb +++ b/lib/tasks/changelog_task.rb @@ -177,7 +177,7 @@ Watchers | #{watchers} end def committer_match - current_line.match /([-\w\s]+)\s+\(\d+\)/ + current_line.match (/([-\w\s]+)\s+\(\d+\)/) end def last_release_sha diff --git a/lib/tasks/github_release_task.rb b/lib/tasks/github_release_task.rb index 0e94749aa..0a25d4eae 100644 --- a/lib/tasks/github_release_task.rb +++ b/lib/tasks/github_release_task.rb @@ -47,7 +47,7 @@ module Fog end def release_match - @current_line.match /## (\d+\.\d+\.\d+) \d+\/\d+\d+/ + @current_line.match (/## (\d+\.\d+\.\d+) \d+\/\d+\d+/) end def github