Skip to content

Commit e96f88b

Browse files
authored
chore: fix missing space before { in TOML parsing regex (#76)
1 parent 96a2fae commit e96f88b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/bump_versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ find . -name "Cargo.toml" | while read -r cargo_file; do
2424
name=""
2525
while IFS= read -r line; do
2626
# 1) Match workspace deps like: alto-foo = { version = "0.0.3", path = "foo" }
27-
if [[ "${line}" =~ ^[[:space:]]*(alto-[^[:space:]]+)[[:space:]]*=\ {[[:space:]]*version[[:space:]]*=[[:space:]]*\"([0-9]+\.[0-9]+\.[0-9]+)\" ]]; then
27+
if [[ "${line}" =~ ^[[:space:]]*(alto-[^[:space:]]+)[[:space:]]*=[[:space:]]*\{[[:space:]]*version[[:space:]]*=[[:space:]]*\"([0-9]+\.[0-9]+\.[0-9]+)\" ]]; then
2828
old="${BASH_REMATCH[2]}"
2929
new="$(bump_version "${old}")"
3030
line="${line/${old}/${new}}"
@@ -83,4 +83,4 @@ if [ -f "explorer/package.json" ]; then
8383
else
8484
rm "$temp_file"
8585
fi
86-
fi
86+
fi

0 commit comments

Comments
 (0)