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

View file

@ -4,7 +4,7 @@ Inspired by [/r/startpages](https://www.reddit.com/r/startpages)—the idea is t
## 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

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=',
// the delimiter between the key and your search query
// e.g. to search GitHub for potatoes you'd type "g:potatoes"
// the delimiter between the key and your search query.
// e.g. to search GitHub for potatoes you'd type "g:potatoes".
searchDelimiter: ':',
// set to true to instantly redirect when a key is matched.
@ -224,11 +224,11 @@
// prevent unwanted redirects.
instantRedirect: false,
// the delimiter between the hours and minutes in the clock
// the delimiter between the hours and minutes in the clock.
clockDelimiter: ' ',
// 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,
// if "urlRegex" matches but this doesn't, "http://" will be
@ -326,7 +326,6 @@
if (!q) {
Help.toggle();
searchInput.value = '';
return false;
}