You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/cel/library/quantity.go
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ import (
70
70
//
71
71
// - asInteger: returns a representation of the current value as an int64 if
72
72
// possible or results in an error if conversion would result in overflow
73
-
// or loss of precision.
73
+
// or loss of precision.
74
74
//
75
75
// - asApproximateFloat: returns a float64 representation of the quantity which may
76
76
// lose precision. If the value of the quantity is outside the range of a float64
@@ -119,7 +119,6 @@ import (
119
119
//
120
120
// - compareTo: Compares receiver to operand and returns 0 if they are equal, 1 if the receiver is greater, or -1 if the receiver is less than the operand
Copy file name to clipboardExpand all lines: pkg/cel/library/semverlib.go
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ import (
37
37
// to semver.org documentation for information on accepted patterns.
38
38
// An optional "normalize" argument can be passed to enable normalization. Normalization removes any "v" prefix, adds a
39
39
// 0 minor and patch numbers to versions with only major or major.minor components specified, and removes any leading 0s.
40
+
//
40
41
// semver(<string>) <Semver>
41
42
// semver(<string>, <bool>) <Semver>
42
43
//
@@ -65,7 +66,7 @@ import (
65
66
//
66
67
// isSemver('1.0.0') // returns true
67
68
// isSemver('hello') // returns false
68
-
//isSemver('v1.0') // returns false (leading "v" is not allowed unless normalization is enabled)
69
+
//isSemver('v1.0') // returns false (leading "v" is not allowed unless normalization is enabled)
69
70
// isSemver('v1.0', true) // Applies normalization to remove leading "v". returns true
70
71
// semver('1.0', true) // Applies normalization to add the missing patch version. Returns true
71
72
// semver('01.01.01', true) // Applies normalization to remove leading zeros. Returns true
@@ -88,7 +89,6 @@ import (
88
89
//
89
90
// - compareTo: Compares receiver to operand and returns 0 if they are equal, 1 if the receiver is greater, or -1 if the receiver is less than the operand
0 commit comments