Skip to content

Commit 0f541ed

Browse files
committed
extract_release_notes regex improvement
1 parent b008eb7 commit 0f541ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def extract_release_notes(version:)
689689
content = File.read(notes_path)
690690

691691
escaped = Regexp.escape(version)
692-
match = content.match(/^#{escaped}\n=+\n(.*?)(?=\n\d+\.\d+|\z)/m)
692+
match = content.match(/^#{escaped}\n=+\n(.*?)(?=^\d+\.\d+\S*\n=+|\z)/m)
693693

694694
if match
695695
match[1].strip

0 commit comments

Comments
 (0)