Skip to content

Commit

Permalink
Refac: repeatedly used black
Browse files Browse the repository at this point in the history
"1 file left unchanged." shown
  • Loading branch information
konbraphat51 committed Nov 9, 2023
1 parent 5bfa50d commit 28b6006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythainlp/util/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def remove_repeat_consonants(text: str, dictionary: Trie = None) -> str:

# check match
if (len(segment_head) >= len(repeater_head)) and (
segment_head[-len(repeater_head):] == repeater_head
segment_head[-len(repeater_head) :] == repeater_head
):
# matched
if len(repeater) > len(longest_word):
Expand Down

0 comments on commit 28b6006

Please sign in to comment.