cheat.sh
cheat.sh copied to clipboard
URL should be case insensitive
cheat.sh/perl/subroutines
and
cheat.sh/Perl/Subroutines
Should return the same thing.
@chubin Still actual.
https://cheat.sh/Perl/Subroutines now gives Internal Server Error. @chubin something is broken.
@abitrolly Should work now, but the issue is still actual. I agree with the proposal. The queries should be case-insensitive
The fix is to add query = query.lower() somewhere around these lines.
https://github.com/chubin/cheat.sh/blob/7f769d6f3697541e55fd3ea9b71f190296529e48/lib/cheat_wrapper.py#L90-L91
Or maybe after the query is parsed if search_options are still case-sensitive at this point.
Yes, but this change is not enough, because filenames are case insensitive. It is possible to make them lower case in our repositories, but we can't influence external repositories, so more changes needed, but it is not a problem