Skip to content

Commit

Permalink
🐛 fix: 修正版本号无法大于 10 的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 15, 2021
2 parents cc9c001 + 7615d97 commit b4e9cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const CSPKeyMap = {
export const validateVersion = (version: string) => {
// 测试是否属于 X.Y.Z.a
// https://regex101.com/r/xijWEc/3
const regex = /^\d(\.\d){0,3}$/;
const regex = /^\d+(\.\d+){0,3}$/;

// 说明不是正常的版本号
if (!regex.exec(version)) {
Expand Down

1 comment on commit b4e9cd4

@vercel
Copy link

@vercel vercel bot commented on b4e9cd4 Oct 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.