Github-readme-stats: Top Languages Card not hiding C++

Created on 26 Jul 2020  路  4Comments  路  Source: anuraghazra/github-readme-stats

Description

The top languages card is unable to hide the C++ language.
I tried it both ways:

  1. PHP was hidden but c++ was not.
    https://github-readme-stats.vercel.app/api/top-langs/?username=thisispratt&hide=c++,php

image

  1. https://github-readme-stats.vercel.app/api/top-langs/?username=thisispratt&hide=["PHP","C++"]

image

Expected behavior

C++ should be hidden with the &hide=c++ or &hide=cpp

bug

Most helpful comment

It is because we currently don't encode the symbols for you in the URL query.

Try this query: https://github-readme-stats.vercel.app/api/top-langs/?username=thisispratt&hide=c%2B%2B,php

All 4 comments

It is because we currently don't encode the symbols for you in the URL query.

Try this query: https://github-readme-stats.vercel.app/api/top-langs/?username=thisispratt&hide=c%2B%2B,php

It is because we currently don't encode the symbols for you in the URL query.

Try this query: https://github-readme-stats.vercel.app/api/top-langs/?username=thisispratt&hide=c%2B%2B,php

Thanks! it works fine.
Can you please explain what this 2B does?

Some characters in URLs have special roles, so you if you're not using them for their specific role you have to encode them. %2B is the encoded version of "+".

See https://en.wikipedia.org/wiki/Percent-encoding for further reference

Hi @thisispratt i hope you get your answer :) closing this now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Math-O5 picture Math-O5  路  5Comments

NikhilCodes picture NikhilCodes  路  3Comments

nathanchu picture nathanchu  路  5Comments

harshagv picture harshagv  路  5Comments

anuraghazra picture anuraghazra  路  5Comments