Skip to content

Commit

Permalink
Add special handling for RMB.
Browse files Browse the repository at this point in the history
  • Loading branch information
lepinkainen committed May 20, 2016
1 parent 7ab617a commit a8a4330
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyfibot/modules/module_wolfram_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ def init(bot):


def clean_question(_string):
if _string:
res = re.sub("[ ]{2,}", " ",
_string.replace(' | ', ' ').replace('\n', ' ').replace('~~', ' ≈ ')).strip()
res = res.replace("\:0e3f", u'฿')
return res
return clean_answer(_string)


def clean_answer(_string):
if _string:
res = re.sub("[ ]{2,}", " ",
_string.replace(' | ', ': ').replace('\n', ' | ').replace('~~', ' ≈ ')).strip()
res = res.replace("\:0e3f", u'฿')
res = res.replace("\:ffe5", u'¥')
return res


Expand Down

0 comments on commit a8a4330

Please sign in to comment.