Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc53fefb

Browse files
committed
feat: support${version}+${name} tag format
relates#71
1 parent7e56a1c commitc53fefb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/updateDeps.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const getVersionFromTag = (pkg, tag) => {
3636
if(!pkg.name)returntag||null;
3737
if(!tag)returnnull;
3838

39-
conststrMatch=tag.match(/[0-9].[0-9].[0-9].*/);
39+
// TODO inherit semantic-release/lib/branches/get-tags.js
40+
conststrMatch=tag.match(/[0-9].[0-9].[0-9][^+]*/);
4041
returnstrMatch&&strMatch[0]&&semver.valid(strMatch[0]) ?strMatch[0] :null;
4142
};
4243

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp