From ff5e3c603c0657cfdce848bf82c7a42336155c20 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Sun, 2 Jun 2013 20:44:52 +0200 Subject: [PATCH] =?UTF-8?q?[RUtils]=20Use=20\xc2=20for=20=C2=B0=20since=20?= =?UTF-8?q?it=20is=20a=20non-ASCII=20character?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rutils.py b/rutils.py index adf7ec8..764b361 100755 --- a/rutils.py +++ b/rutils.py @@ -216,10 +216,10 @@ def regex(phenny, input): if not input.group(2): return q = input.group(2).encode('utf-8') - rgx = q[:q.find("°")] - txt = q[q.find("°")+1:] + rgx = q[:q.find("\xc2")] + txt = q[q.find("\xc2")+1:] 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: r = re.compile(rgx) except BaseException as e: