Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15391332
D11305.id27162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D11305.id27162.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
return array(
'names' => array(
'core.pkg.css' => '8fc8031a',
- 'core.pkg.js' => 'd49bf8b2',
+ 'core.pkg.js' => '6c705fe1',
'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '8af45893',
'differential.pkg.js' => 'dad3622f',
@@ -440,7 +440,7 @@
'rsrc/js/core/KeyboardShortcutManager.js' => 'ad7a69ca',
'rsrc/js/core/MultirowRowManager.js' => 'b5d57730',
'rsrc/js/core/Notification.js' => '0c6946e7',
- 'rsrc/js/core/Prefab.js' => 'bbae734c',
+ 'rsrc/js/core/Prefab.js' => '1d235421',
'rsrc/js/core/ShapedRequest.js' => '7cbe244b',
'rsrc/js/core/TextAreaUtils.js' => '5c93c52c',
'rsrc/js/core/Title.js' => '5c1c758c',
@@ -727,7 +727,7 @@
'phabricator-notification-menu-css' => '6aa0a74b',
'phabricator-object-selector-css' => '029a133d',
'phabricator-phtize' => 'd254d646',
- 'phabricator-prefab' => 'bbae734c',
+ 'phabricator-prefab' => '1d235421',
'phabricator-profile-css' => '28f433ef',
'phabricator-remarkup-css' => '7604f12e',
'phabricator-search-results-css' => 'f240504c',
@@ -956,6 +956,18 @@
'javelin-util',
'phabricator-keyboard-shortcut-manager',
),
+ '1d235421' => array(
+ 'javelin-install',
+ 'javelin-util',
+ 'javelin-dom',
+ 'javelin-typeahead',
+ 'javelin-tokenizer',
+ 'javelin-typeahead-preloaded-source',
+ 'javelin-typeahead-ondemand-source',
+ 'javelin-dom',
+ 'javelin-stratcom',
+ 'javelin-util',
+ ),
'1def2711' => array(
'javelin-install',
'javelin-dom',
@@ -1607,18 +1619,6 @@
'javelin-stratcom',
'javelin-dom',
),
- 'bbae734c' => array(
- 'javelin-install',
- 'javelin-util',
- 'javelin-dom',
- 'javelin-typeahead',
- 'javelin-tokenizer',
- 'javelin-typeahead-preloaded-source',
- 'javelin-typeahead-ondemand-source',
- 'javelin-dom',
- 'javelin-stratcom',
- 'javelin-util',
- ),
'bd4c8dca' => array(
'javelin-install',
'javelin-util',
diff --git a/webroot/rsrc/js/core/Prefab.js b/webroot/rsrc/js/core/Prefab.js
--- a/webroot/rsrc/js/core/Prefab.js
+++ b/webroot/rsrc/js/core/Prefab.js
@@ -87,6 +87,13 @@
for (var ii = 0; ii < list.length; ii++) {
var item = list[ii];
+
+ for (var jj = 0; jj < tokens.length; jj++) {
+ if (item.name.indexOf(tokens[jj]) === 0) {
+ priority_hits[item.id] = true;
+ }
+ }
+
if (!item.priority) {
continue;
}
@@ -95,8 +102,8 @@
self_hits[item.id] = true;
}
- for (var jj = 0; jj < tokens.length; jj++) {
- if (item.priority.substr(0, tokens[jj].length) == tokens[jj]) {
+ for (var hh = 0; jj < tokens.length; jj++) {
+ if (item.priority.substr(0, tokens[hh].length) == tokens[jj]) {
priority_hits[item.id] = true;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 9:24 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706738
Default Alt Text
D11305.id27162.diff (3 KB)
Attached To
Mode
D11305: Tokenizers - improve algorithm around exact matches.
Attached
Detach File
Event Timeline
Log In to Comment