Skip to content

Commit a90e5c1

Browse files
authored
Merge pull request #385 from rctgamer3/patch-1
Fix full-width space
2 parents 75399e0 + 999d617 commit a90e5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def swapcase(text):
126126
def fullwidth(text):
127127
"""<string> - Converts <string> to full width characters."""
128128
HALFWIDTH_TO_FULLWIDTH = str.maketrans(
129-
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=>?@[]^_`{|}~',
130-
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!゛#$%&()*+、ー。/:;〈=〉?@[]^_‘{|}~",
129+
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&()*+,-./:;<=>?@[]^_`{|}~ ',
130+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!゛#$%&()*+、ー。/:;〈=〉?@[]^_‘{|}~ ",
131131
)
132132
return text.translate(HALFWIDTH_TO_FULLWIDTH)
133133

0 commit comments

Comments
 (0)