Skip to content

Commit fcb0a12

Browse files
committed
scripts/release.sh
1 parent 9324823 commit fcb0a12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ NEW_VERSION="$(perl -ne 'print $1 if /"version":\s*"([^"]+)"/' package.json)"
5757
update_version() {
5858
local ver="$1"
5959
# Update source file version
60-
perl -pi -e 's/(jQuery Micro Utils v)\d+\.\d+\.\d+/\1'"$ver"'/g' src/jquery-micro-utils.js
61-
perl -pi -e 's/(\$\.microUtils = \{ version: ['\''"])([^'\''"]+)(['\''"] \})/\1'"$ver"'\3/g' src/jquery-micro-utils.js
60+
perl -pi -e 's/(jQuery Micro Utils v)\d+\.\d+\.\d+/${1}'"$ver"'/g' src/jquery-micro-utils.js
61+
perl -pi -e 's/(\$\.microUtils = \{ version: ['\''"])([^'\''"]+)(['\''"] \})/${1}'"$ver"'${3}/g' src/jquery-micro-utils.js
6262
# Update README CDN link
63-
perl -pi -e 's/(cdn\.jsdelivr\.net\/gh\/AnswerDotAI\/jquery-micro-utils@)\d+\.\d+\.\d+/\1'"$ver"'/g' README.md
63+
perl -pi -e 's/(cdn\.jsdelivr\.net\/gh\/AnswerDotAI\/jquery-micro-utils@)\d+\.\d+\.\d+/${1}'"$ver"'/g' README.md
6464
}
6565

6666
update_version "$NEW_VERSION"

0 commit comments

Comments
 (0)