periods and other minor things

This commit is contained in:
Cade Scroggins
2016-10-13 15:42:00 -07:00
parent 495bda10b9
commit 64ab993fdd
2 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Inspired by [/r/startpages](https://www.reddit.com/r/startpages)—the idea is t
## Usage ## Usage
To go to a site, enter the corresponding key. To view the available commands, enter a `?`. If your input doesn't match any of the commands, a generic google search will be triggered. To go to a site, enter the corresponding key. To view the available commands, press `enter`. If your input doesn't match any of the commands, a generic google search will be triggered.
## Examples ## Examples
+5 -6
View File
@@ -212,11 +212,11 @@
] }, ] },
], ],
// if none of the keys are matched, this is used for searching // if none of the keys are matched, this is used for searching.
defaultSearch: 'https://www.google.com/search?q=', defaultSearch: 'https://www.google.com/search?q=',
// the delimiter between the key and your search query // the delimiter between the key and your search query.
// e.g. to search GitHub for potatoes you'd type "g:potatoes" // e.g. to search GitHub for potatoes you'd type "g:potatoes".
searchDelimiter: ':', searchDelimiter: ':',
// set to true to instantly redirect when a key is matched. // set to true to instantly redirect when a key is matched.
@@ -224,11 +224,11 @@
// prevent unwanted redirects. // prevent unwanted redirects.
instantRedirect: false, instantRedirect: false,
// the delimiter between the hours and minutes in the clock // the delimiter between the hours and minutes in the clock.
clockDelimiter: ' ', clockDelimiter: ' ',
// when the input matches this regular expression, you will // when the input matches this regular expression, you will
// be redirected directly to the input url // be redirected directly to the input url.
urlRegex: /^(?:(http|https)?:\/\/)?(?:[\w-]+\.)+([a-z]|[A-Z]|[0-9]){2,6}/i, urlRegex: /^(?:(http|https)?:\/\/)?(?:[\w-]+\.)+([a-z]|[A-Z]|[0-9]){2,6}/i,
// if "urlRegex" matches but this doesn't, "http://" will be // if "urlRegex" matches but this doesn't, "http://" will be
@@ -326,7 +326,6 @@
if (!q) { if (!q) {
Help.toggle(); Help.toggle();
searchInput.value = '';
return false; return false;
} }