Skip to content

Commit 23c85fa

Browse files
committed
Fix a bug which increases score of c on writing c++
1 parent 6ccb818 commit 23c85fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/leaderboard.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = (robot) ->
7373
# if there is to be `plus` in score
7474
if word.indexOf("++") >= 0
7575
name = word.replace posRegex, ""
76-
if username.toLowerCase() == name.toLowerCase()
76+
if username.toLowerCase() == name.toLowerCase() or name.toLowerCase() == "c"
7777
response = "-1"
7878
else
7979
field[name.toLowerCase()] = lastScore(name, field) + 1

0 commit comments

Comments
 (0)