Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion eng/versioning/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

# External dependency versions do not have to match semver format and the semver regular expressions
# will partially match and produce some hilarious results.
external_dependency_version_regex = r'(?<=<version>).+?(?=</version>)'
# Match version content inside <version> or custom property tags ending with .version
# (e.g. <scala-jackson.version>). The lookahead restricts to closing tags that are
# either </version> or </something.version>, rejecting unrelated tags like </description>.
external_dependency_version_regex = r'(?<=>)[^<]+(?=</(?:[\w.\-]+\.)?version>)'

# This is the original regular expression for semver. This differs from the
# previous one in that start of line and end of line anchors are left in place.
Expand Down