Skip to content
Snippets Groups Projects

fix: Fix middleware regex string to properly match with page param

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -48,7 +48,7 @@ import io.quarkus.arc.Unremovable;
@@ -48,7 +48,7 @@ import io.quarkus.arc.Unremovable;
@Unremovable
@Unremovable
public class DefaultAPIMiddleware implements APIMiddleware {
public class DefaultAPIMiddleware implements APIMiddleware {
public static final Logger LOGGER = LoggerFactory.getLogger(DefaultAPIMiddleware.class);
public static final Logger LOGGER = LoggerFactory.getLogger(DefaultAPIMiddleware.class);
private static final Pattern PAGE_QUERY_STRING_PARAM_MATCHER = Pattern.compile(".*[\\?&]?page=(\\d+).*");
private static final Pattern PAGE_QUERY_STRING_PARAM_MATCHER = Pattern.compile(".*[\\?&]page=(\\d+).*");
@Inject
@Inject
ObjectMapper objectMapper;
ObjectMapper objectMapper;
Loading