mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
Try it again
This commit is contained in:
parent
c2b0573040
commit
5d2537b236
|
@ -98,7 +98,7 @@ class ObjManip: # Object Manipulation
|
|||
def blank(string, downcase=True):
|
||||
import re
|
||||
regex = re.compile('[^a-zA-Z0-9\ ]')
|
||||
string = regex.sub('', string.encode('ascii', 'ignore'))
|
||||
string = regex.sub('', string.decode("utf8"))
|
||||
if downcase:
|
||||
string = string.lower()
|
||||
return ' '.join(string.decode().split())
|
||||
|
|
Loading…
Reference in a new issue