mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fixed funkyArgument to allow bolding.
This commit is contained in:
parent
bc93b2953a
commit
15e26578fb
@ -156,9 +156,10 @@ def bold(s):
|
||||
def validArgument(s):
|
||||
return '\r' not in s and '\n' not in s and '\x00' not in s
|
||||
|
||||
nonFunkyArguments = string.printable+'\x02'
|
||||
def funkyArgument(s):
|
||||
if validArgument(s):
|
||||
if s.translate(string.ascii, string.printable) == '':
|
||||
if s.translate(string.ascii, nonFunkyArguments) == '':
|
||||
# All characters must be printable.
|
||||
return False
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user