[RUtils] Use ° insead of \x02 to seperate regex and text
This commit is contained in:
parent
fefd4ae35b
commit
3373a2fad5
@ -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("\x02")]
|
rgx = q[:q.find("°")]
|
||||||
txt = q[q.find("\x02")+1:]
|
txt = q[q.find("°")+1:]
|
||||||
if rgx == "" or txt == "":
|
if rgx == "" or txt == "":
|
||||||
return phenny.reply("Give me a regex and a message seperated by \x02")
|
return phenny.reply("Give me a regex and a message seperated by °")
|
||||||
try:
|
try:
|
||||||
r = re.compile(rgx)
|
r = re.compile(rgx)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user