Page MenuHomePhorge

D25320.1736885774.diff
No OneTemporary

D25320.1736885774.diff

diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -387,7 +387,7 @@
'rsrc/js/application/diff/DiffTreeView.js' => '5d83623b',
'rsrc/js/application/differential/behavior-diff-radios.js' => '925fe8cd',
'rsrc/js/application/differential/behavior-populate.js' => 'b86ef6c2',
- 'rsrc/js/application/diffusion/DiffusionLocateFileSource.js' => '94243d89',
+ 'rsrc/js/application/diffusion/DiffusionLocateFileSource.js' => '6c798a10',
'rsrc/js/application/diffusion/ExternalEditorLinkEngine.js' => '48a8641f',
'rsrc/js/application/diffusion/behavior-audit-preview.js' => 'b7b73831',
'rsrc/js/application/diffusion/behavior-commit-branches.js' => '4b671572',
@@ -707,7 +707,7 @@
'javelin-chart-function-label' => '81de1dab',
'javelin-color' => '78f811c9',
'javelin-cookie' => '05d290ef',
- 'javelin-diffusion-locate-file-source' => '94243d89',
+ 'javelin-diffusion-locate-file-source' => '6c798a10',
'javelin-dom' => 'e4c7622a',
'javelin-dynval' => '202a2e85',
'javelin-event' => 'c03f2fb4',
@@ -1555,6 +1555,12 @@
'phabricator-textareautils',
'phabricator-remarkup-metadata',
),
+ '6c798a10' => array(
+ 'javelin-install',
+ 'javelin-dom',
+ 'javelin-typeahead-preloaded-source',
+ 'javelin-util',
+ ),
'6cfa0008' => array(
'javelin-dom',
'javelin-dynval',
@@ -1762,12 +1768,6 @@
'phabricator-prefab',
'javelin-json',
),
- '94243d89' => array(
- 'javelin-install',
- 'javelin-dom',
- 'javelin-typeahead-preloaded-source',
- 'javelin-util',
- ),
'9623adc1' => array(
'javelin-behavior',
'javelin-stratcom',
diff --git a/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js b/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
--- a/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
+++ b/webroot/rsrc/js/application/diffusion/DiffusionLocateFileSource.js
@@ -99,6 +99,10 @@
return [];
}
+ // Be nice with terminal users that may have "./" or "/" prefixes.
+ // Otherwise, not a single result is returned.
+ search = search.replace(/^\.?\//, '');
+
// We know that the results for "abc" are always a subset of the results
// for "a" and "ab" -- and there's a good chance we already computed
// those result sets. Find the longest cached result which is a prefix

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 14, 20:16 (3 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114157
Default Alt Text
D25320.1736885774.diff (2 KB)

Event Timeline