mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-06-04 18:13:49 +00:00
feat: hide wakatime languages (#1212)
* feat: added option to hide languages * feat: recalculate percentages for hidden languages * refactor: reverted langs_count and did some formatting * doc: added hide to readme * feat: make languages var mutable and improve filter logic Co-authored-by: Adrian Kunz <clashsoft@hotmail.com> * refactor: improve code and added tests Co-authored-by: Adrian Kunz <clashsoft@hotmail.com> Co-authored-by: Anurag <hazru.anurag@gmail.com>
This commit is contained in:
@@ -230,6 +230,7 @@ function measureText(str, fontSize = 10) {
|
||||
.reduce((cur, acc) => acc + cur) * fontSize
|
||||
);
|
||||
}
|
||||
const lowercaseTrim = (name) => name.toLowerCase().trim();
|
||||
|
||||
module.exports = {
|
||||
renderError,
|
||||
@@ -248,4 +249,5 @@ module.exports = {
|
||||
logger,
|
||||
CONSTANTS,
|
||||
CustomError,
|
||||
lowercaseTrim,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user