Skip to content

Instantly share code, notes, and snippets.

@satyr
Created April 21, 2009 16:30
Show Gist options
  • Save satyr/99227 to your computer and use it in GitHub Desktop.
Save satyr/99227 to your computer and use it in GitHub Desktop.
diff --git a/ubiquity/feed-parts/header/en/nountypes.js b/ubiquity/feed-parts/header/en/nountypes.js
--- a/ubiquity/feed-parts/header/en/nountypes.js
+++ b/ubiquity/feed-parts/header/en/nountypes.js
@@ -711,17 +711,19 @@ var noun_type_commands = {
}
return cmds;
}
}
var noun_type_twitter_user = {
_name: "twitter username",
rankLast: true,
- suggest: function(text, html){
+ suggest: function(text, html, cb, selected){
+ if(selected) return [];
+
// Twitter usernames can't contain spaces; reject input with spaces.
if (text.length && text.indexOf(" ") != -1)
return [];
var suggs = [];
// If we don't need to ask the user for their master password, let's
// see if we can suggest known users that the user has logged-in as
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment