We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0318102 commit 3821624Copy full SHA for 3821624
tldr.py
@@ -528,9 +528,15 @@ def main() -> None:
528
for word in searchquery:
529
prob = 0
530
for line in result:
531
- if word in line and \
532
- (line.startswith('-') or line.startswith('>')):
+ line = line.lower()
+ if word in line:
533
prob += 1
534
+ if line.startswith("#"):
535
+ prob += 7
536
+ elif line.startswith(">"):
537
+ prob += 5
538
+ elif line.startswith("-"):
539
+ prob += 2
540
if prob > maxprob:
541
maxprob = prob
542
page = i
0 commit comments