releasedJirasRegex.py: fixed comment about the limitations of the script

This commit is contained in:
Steve Rowe 2016-06-27 16:32:33 -04:00
parent 240dd35f21
commit 09a7e4da3c
1 changed files with 4 additions and 3 deletions

View File

@ -24,9 +24,10 @@ import re
# under the given version in the given CHANGES.txt file # under the given version in the given CHANGES.txt file
# and prints a regular expression that will match all of them # and prints a regular expression that will match all of them
# #
# Caveat: only works with modern CHANGES releases that use bullets # Caveat: In ancient versions (Lucene v1.9 and older; Solr v1.1 and older),
# ('*' or '-') - other list item mechanisms (numbers or letters) # does not find Bugzilla bugs or JIRAs not mentioned at the beginning of
# are not handled properly. # bullets or numbered entries.
#
def print_released_jiras_regex(version, filename): def print_released_jiras_regex(version, filename):
release_boundary_re = re.compile(r'\s*====*\s+(.*)\s+===') release_boundary_re = re.compile(r'\s*====*\s+(.*)\s+===')
version_re = re.compile(r'%s(?:$|[^-])' % version) version_re = re.compile(r'%s(?:$|[^-])' % version)