@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Unbreak regex filename search

Summary:
D9087 adds a nice typeahead but breaks the existing regex
search by quoting the pattern. Ideally, this change won't break the
typeahead, which as far as I can tell doesn't use the `pattern`
argument.

Test Plan:
Not yet.
RFC as to whether this change makes sense, will fix my local setup and resend if so.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15500

authored by

Vlad Albulescu and committed by
epriestley
130e1d1f 76f07ec8

+2 -1
+2 -1
src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
··· 79 79 $offset = (int)$request->getValue('offset'); 80 80 81 81 if (strlen($pattern)) { 82 - $pattern = '/'.preg_quote($pattern, '/').'/'; 82 + // Add delimiters to the regex pattern. 83 + $pattern = '('.$pattern.')'; 83 84 } 84 85 85 86 $results = array();