Skip to content

Commit c337c5e

Browse files
committed
updated regex for ìsInt`
1 parent 8cec653 commit c337c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internals/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
)
2828

2929
func tryParseInt(str string) (int, bool) {
30-
isInt, err := regexp.MatchString(`[0-9_]*`, str)
30+
isInt, err := regexp.MatchString(`^\d+$`, str)
3131

3232
if err != nil {
3333
log.Error("Encountered Error while Parsing Int", err.Error())

0 commit comments

Comments
 (0)