Skip to content

Commit

Permalink
Merge pull request #429 from isucon/backend/fix-matchString
Browse files Browse the repository at this point in the history
fix(backend): 正規表現に使うメソッドMatchStringに変更
  • Loading branch information
oribe1115 committed Jul 25, 2021
2 parents be063ff + a87a41b commit bf36994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ func postIsuCondition(c echo.Context) error {
// parse
timestamp := time.Unix(cond.Timestamp, 0)

if !conditionFormat.Match([]byte(cond.Condition)) {
if !conditionFormat.MatchString(cond.Condition) {
c.Logger().Errorf("bad request body")
return c.String(http.StatusBadRequest, "bad request body")
}
Expand Down

0 comments on commit bf36994

Please sign in to comment.