mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-06 04:16:04 +03:00
rewriting queries (VIM_NAMES)
This commit is contained in:
parent
93a6f9ed52
commit
998f23ed36
@ -420,6 +420,12 @@ def get_answer(topic, keyword, options="", request_options=None): # pylint: disa
|
||||
|
||||
def _rewrite_section_name_for_q(query):
|
||||
"""
|
||||
FIXME: we rewrite the section name too earlier,
|
||||
what means that we have to use SO names everywhere,
|
||||
where actually canonified internal names shoud be used.
|
||||
After this thing is fixed, we should:
|
||||
* fix naming in cache
|
||||
* fix VIM_NAMES
|
||||
"""
|
||||
if '/' not in query:
|
||||
return query
|
||||
|
Loading…
Reference in New Issue
Block a user