1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00
phorge-phorge/webroot/rsrc
Valerio Bozzolan 4a0d3ba3e1 Locate File: allow to search './path/to/something.txt'
Summary:
Before this change, if you search a file using Locate File,
this was the only accepted syntax for a full-path:

    path/to/something.txt

After this change, some relative/absolute Unix-like variants
are also accepted:

    ./path/to/something.txt
    /path/to/something.txt

Similar prefixes can be frequent when you quickly copy-paste things
from shell commands like 'grep' or 'find' etc.

Ref T15508

Test Plan:
Visit a lovely repository like Phorge and use Locate File with these:

1. src/applications/maniphest/editor/ManiphestEditEngine.php
2. /src/applications/maniphest/editor/ManiphestEditEngine.php
3. ./src/applications/maniphest/editor/ManiphestEditEngine.php

After this change, also 2. and 3. return the expected file.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15508

Differential Revision: https://we.phorge.it/D25320
2023-07-04 17:12:57 +02:00
..
audio/basic Add a few more sounds 2017-04-19 13:47:23 -07:00
css Give embedded image files with transparency a checkered background 2023-06-19 11:57:03 +02:00
externals Fix regression in new confirmation Dialog 2023-03-14 20:24:50 +01:00
favicons Dynamically composite favicons from customizable sources 2018-03-12 15:28:41 -07:00
image Update Google icon on Auth Provider page 2023-06-15 12:37:45 +02:00
js Locate File: allow to search './path/to/something.txt' 2023-07-04 17:12:57 +02:00