We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d2867 commit 9237c28Copy full SHA for 9237c28
1 file changed
parser/limits.go
@@ -112,12 +112,12 @@ Use 'drycc help [command]' to learn more.
112
memoryLimits := []string{}
113
for _, value := range args["<type>=<value>"].([]string) {
114
if args["--cpu"].(bool) {
115
- isCPU, _ := regexp.MatchString("^\\d+m?$", value)
+ isCPU, _ := regexp.MatchString("\\d+m?$", value)
116
if isCPU {
117
cpuLimits = append(cpuLimits, value)
118
}
119
120
- isMemory, _ := regexp.MatchString("^\\d+[M|G]$", value)
+ isMemory, _ := regexp.MatchString("\\d+[M|G]$", value)
121
if isMemory {
122
memoryLimits = append(memoryLimits, value)
123
0 commit comments