m[2] is the third element of m, rather than the second, so we have to check instead that the len of m is at least 3. Because the regular expression has two capture groups, the length of m will always be 3, so currently the guard will always be true. |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_test.go | ||
| http.go | ||
| http_test.go | ||
| pagination.go | ||
| pagination_test.go | ||