diff --git a/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php index 5ca2783838..be2f07f2c6 100644 --- a/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php +++ b/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php @@ -79,7 +79,8 @@ final class DiffusionQueryPathsConduitAPIMethod $offset = (int)$request->getValue('offset'); if (strlen($pattern)) { - $pattern = '/'.preg_quote($pattern, '/').'/'; + // Add delimiters to the regex pattern. + $pattern = '('.$pattern.')'; } $results = array();