Skip to content

Commit

Permalink
fix(ppc/leet-machine): 修复单词小写转换造成的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
13m0n4de committed Oct 26, 2024
1 parent 0341fe5 commit 1930ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion challenges/ppc/leet_machine/build/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate_random_sentence():


def convert_to_leet(sentence):
return "".join(LEET_DICT.get(char, char) for char in sentence.lower())
return "".join(LEET_DICT.get(char, char) for char in sentence)


def display_rules():
Expand Down
2 changes: 1 addition & 1 deletion challenges/ppc/leet_machine/writeup/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def convert_to_leet(sentence):
return "".join(LEET_DICT.get(char, char) for char in sentence.lower())
return "".join(LEET_DICT.get(char, char) for char in sentence)


# 等待并通过初始提示
Expand Down

0 comments on commit 1930ceb

Please sign in to comment.