We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ebe6b9 commit 43b9ef8Copy full SHA for 43b9ef8
scripts/update-release-version.sh
@@ -266,9 +266,9 @@ update_internal_deps() {
266
local old_version="$2"
267
local new_version="$3"
268
269
- # Escape dots in the old version (e.g., '2.3.0' -> '2\.3\.0') for use in sed regex
+ # Escape regex metacharacters in the old version (e.g., '.' -> '\.')
270
local escaped_old_version
271
- escaped_old_version=$(printf '%s' "${old_version}" | sed 's/\./\\./g')
+ escaped_old_version=$(printf '%s' "${old_version}" | sed 's/[.\*\[\^\$]/\\&/g')
272
273
for pack_name in "${INTERNAL_PACKS[@]}"; do
274
# Update quoted caret-prefixed versions: "^X.Y.Z"
0 commit comments