[RUtils] Use \xc2 for ° since it is a non-ASCII character
parent
3373a2fad5
commit
ff5e3c603c
|
@ -216,10 +216,10 @@ def regex(phenny, input):
|
||||||
if not input.group(2):
|
if not input.group(2):
|
||||||
return
|
return
|
||||||
q = input.group(2).encode('utf-8')
|
q = input.group(2).encode('utf-8')
|
||||||
rgx = q[:q.find("°")]
|
rgx = q[:q.find("\xc2")]
|
||||||
txt = q[q.find("°")+1:]
|
txt = q[q.find("\xc2")+1:]
|
||||||
if rgx == "" or txt == "":
|
if rgx == "" or txt == "":
|
||||||
return phenny.reply("Give me a regex and a message seperated by °")
|
return phenny.reply("Give me a regex and a message seperated by \xc2")
|
||||||
try:
|
try:
|
||||||
r = re.compile(rgx)
|
r = re.compile(rgx)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
|
Loading…
Reference in New Issue