heraldofsolace / VimHelpBot

VimHelpBot is a bot that replies to r/vim and r/neovim comments with link to Vim Help page
GNU General Public License v3.0
46 stars 2 forks source link

Remove fallback mechanism #8

Closed heraldofsolace closed 3 years ago

heraldofsolace commented 4 years ago

Describe the bug Currently the bot looks for query inside back-ticks and falls back to general search if no such query is found. This causes issue when there is both back-ticked and normal queries as the bot only replies to the backticked ones.

The fallback mechanism should be removed and both type of queries should be searched.

To Reproduce Steps to reproduce the behavior:

  1. Post a comment containing both types of queries.

Expected behavior The bot replies to all types of queries.

Additional context Seen here https://www.reddit.com/r/vim/comments/gs5xkm/sorting_markdown_checkboxes_list/fs36f63?utm_source=share&utm_medium=web2x