Skip to content

Commit

Permalink
🔧 chore: 版本号允许大于等于10
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhengjun committed Oct 15, 2021
1 parent cc9c001 commit 7615d97
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

0 comments on commit 7615d97

Please sign in to comment.