Skip to content

Commit

Permalink
Fix changelog regex; resolve part of opengisch#56
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikuoja committed Nov 26, 2021
1 parent e02cddd commit 92b384e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qgispluginci/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# ################################

# see: https://regex101.com/r/8JROUv/1
CHANGELOG_REGEXP = r"(?<=##)\s*\[*(v?0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)\]?(\(.*\))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?\]*\s-\s*([\d\-/]{10})(.*?)(?=##|\Z)"
CHANGELOG_REGEXP = r"(?<=##)\s*\[*(v?0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)\]?(\(.*\))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?\]*\s-\s*([\d\-/]{10})(.*?)(?=\n## |\Z)"
logger = logging.getLogger(__name__)

# ############################################################################
Expand Down

0 comments on commit 92b384e

Please sign in to comment.