From 9d334d15d5031006ecd7b8508cd009c2422f21d8 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 11 Apr 2020 23:02:43 +0200 Subject: [PATCH] Section: Split quicker on newline - we only need to get 1 group - so we can ask String#split() to give us two groups --- lib/github_changelog_generator/generator/section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/generator/section.rb b/lib/github_changelog_generator/generator/section.rb index 49e2c00dc..501b1224e 100644 --- a/lib/github_changelog_generator/generator/section.rb +++ b/lib/github_changelog_generator/generator/section.rb @@ -69,7 +69,7 @@ def issue_line_with_body(line, issue) end def body_till_first_break(body) - body.split(/\n/).first + body.split(/\n/, 2).first end def issue_line_with_user(line, issue) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy