mirror of https://github.com/apache/lucene.git
Allow trailing colons in CHANGES.txt section names
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1542027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
75563db914
commit
fd8a71b213
|
@ -216,7 +216,7 @@ Bug Fixes
|
|||
deleted at a later point in time. This could cause short-term disk
|
||||
pollution or OOM if in-memory directories are used. (Simon Willnauer)
|
||||
|
||||
API Changes:
|
||||
API Changes
|
||||
|
||||
* LUCENE-5222: Add SortField.needsScores(). Previously it was not possible
|
||||
for a custom Sort that makes use of the relevance score to work correctly
|
||||
|
|
|
@ -113,10 +113,13 @@ for (my $line_num = 0 ; $line_num <= $#lines ; ++$line_num) {
|
|||
}
|
||||
|
||||
# Section heading: no leading whitespace, initial word capitalized,
|
||||
# five words or less, and no trailing punctuation
|
||||
if ( /^([A-Z]\S*(?:\s+\S+){0,4})(?<![-.:;!()])\s*$/
|
||||
# five words or less, and no trailing punctuation,
|
||||
# except colons - don't match the one otherwise matching
|
||||
# non-section-name by excluding "StandardTokenizer"
|
||||
if ( /^(?!.*StandardTokenizer)([A-Z]\S*(?:\s+\S+){0,4})(?<![-.;!()])\s*$/
|
||||
and not $in_major_component_versions_section) {
|
||||
my $heading = $1;
|
||||
$heading =~ s/:$//; # Strip trailing colon, if any
|
||||
$items = [];
|
||||
unless (@releases) {
|
||||
$sections = [];
|
||||
|
|
Loading…
Reference in New Issue