File tree Expand file tree Collapse file tree 2 files changed +20
-12
lines changed
Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 66- 优化:系统未捕获异常日志记录
77- 优化:工单提交日志收集完善更多信息,方便排查问题
88- 修复:windows下路径编码问题
9+ - 修复:版本号对比检测异常问题修复
910
1011## v0.3.0
1112
Original file line number Diff line number Diff line change @@ -328,19 +328,26 @@ export const VersionUtil = {
328328 if ( match === '*' ) {
329329 return true
330330 }
331- if ( match . startsWith ( '>=' ) && this . ge ( v , match . substring ( 2 ) ) ) {
332- return true
333- }
334- if ( match . startsWith ( '>' ) && this . gt ( v , match . substring ( 1 ) ) ) {
335- return true
336- }
337- if ( match . startsWith ( '<=' ) && this . le ( v , match . substring ( 2 ) ) ) {
338- return true
339- }
340- if ( match . startsWith ( '<' ) && this . lt ( v , match . substring ( 1 ) ) ) {
341- return true
331+ if ( match . startsWith ( '>=' ) ) {
332+ if ( this . ge ( v , match . substring ( 2 ) ) ) {
333+ return true
334+ }
335+ } else if ( match . startsWith ( '<=' ) ) {
336+ if ( this . le ( v , match . substring ( 2 ) ) ) {
337+ return true
338+ }
339+ } else if ( match . startsWith ( '>' ) ) {
340+ if ( this . gt ( v , match . substring ( 1 ) ) ) {
341+ return true
342+ }
343+ } else if ( match . startsWith ( '<' ) ) {
344+ if ( this . lt ( v , match . substring ( 1 ) ) ) {
345+ return true
346+ }
347+ } else {
348+ return this . eq ( v , match )
342349 }
343- return this . eq ( v , match )
350+ return false
344351 } ,
345352 compare ( v1 : string , v2 : string ) {
346353 const v1Arr = v1 . split ( '.' )
You can’t perform that action at this time.
0 commit comments