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