From a767c5a39c1d490c81eab3846aa668d905704401 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Fri, 30 Jan 2026 12:30:33 +0200 Subject: [PATCH] added some more thorough description checking into rusty-checker --- rusty-checker.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rusty-checker.sh b/rusty-checker.sh index a59f37e..9a33870 100755 --- a/rusty-checker.sh +++ b/rusty-checker.sh @@ -44,7 +44,8 @@ langdata="$(curl -sSL $LANG_URL)" desc="$(echo $repodata | jq -r .description)" topics=$(echo $repodata | jq -r .topics) # mentioning the language in the description boosts the score a lot -echo "$desc" | grep -qi "$CHLANG" && CORR_SCORE=$((CORR_SCORE + 50)) +echo "$desc" | grep -qi "${CHLANG}-" && CORR_SCORE=$((CORR_SCORE + 50)) +echo "$desc" | grep -qi " ${CHLANG}" && CORR_SCORE=$((CORR_SCORE + 50)) # mentioning the language in the topics also boosts the score echo "$topics" | grep -qi "$CHLANG" && CORR_SCORE=$((CORR_SCORE + 30)) # get the most popular language in the language list