diff --git a/fastlane/changelog_helper.rb b/fastlane/changelog_helper.rb index 566508b..aa85d83 100644 --- a/fastlane/changelog_helper.rb +++ b/fastlane/changelog_helper.rb @@ -21,7 +21,7 @@ def self.extract_changelog(version) # Match the version section, handling both "vX.Y.Z" and "X.Y.Z" formats # Also capture optional build number like "v1.1.1 (Build 31)" - version_pattern = /^##\s+v?#{Regexp.escape(version)}(?:\s+\(Build\s+\d+\))?\s*$/ + version_pattern = /^##\s+v?#{Regexp.escape(version)}(?:\s+\(Build\s+\w+\))?\s*$/ lines = content.lines start_index = nil @@ -163,7 +163,7 @@ def self.extract_raw_changelog(version) end content = File.read(changelog_path) - version_pattern = /^##\s+v?#{Regexp.escape(version)}(?:\s+\(Build\s+\d+\))?\s*$/ + version_pattern = /^##\s+v?#{Regexp.escape(version)}(?:\s+\(Build\s+\w+\))?\s*$/ lines = content.lines start_index = nil