mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Minor doc updates, fixes and improvements
In particular, removed code which no longer worked, made light theme easier on the eyes, added slight syntax highlightning, and fixed search for exact matches.
This commit is contained in:
@@ -85,8 +85,8 @@ if (typeof prependPath !== 'undefined') {
|
||||
// Returns the penalty for finding the needle in the haystack
|
||||
// or -1 if the needle wasn't found at all.
|
||||
function find(haystack, needle) {
|
||||
if (needle.length == 0) {
|
||||
return true;
|
||||
if (haystack.indexOf(needle) != -1) {
|
||||
return 0;
|
||||
}
|
||||
var hi = 0;
|
||||
var ni = 0;
|
||||
|
Reference in New Issue
Block a user