Skip to content

Commit

Permalink
Make behavior consistent with JS version
Browse files Browse the repository at this point in the history
  • Loading branch information
githubcatw committed Aug 24, 2021
1 parent 1f6e013 commit 41aca51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeekSay/Geek.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static string SayWord(string word, bool dos = false) {
if (int.TryParse(word, out wordNum)) {
return Convert.ToString(wordNum, 2);
} else {
string lowerWord = numRE.Replace(word, "");
string lowerWord = numRE.Replace(word, "").ToLower();
if (GeekWords.conversions.ContainsKey(lowerWord)) {
word = word.Replace(word, GeekWords.conversions[lowerWord]);
}
Expand Down

0 comments on commit 41aca51

Please sign in to comment.