also split on non-breaking spaces
This commit is contained in:
parent
71cc90f52a
commit
2aad7232f2
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ def get_datestamp():
|
||||||
|
|
||||||
|
|
||||||
def to_int(string):
|
def to_int(string):
|
||||||
number_string = string.split(' ')[0]
|
number_string = re.split('[\x20\xa0]', string)[0]
|
||||||
try:
|
try:
|
||||||
int_value = locale.atoi(number_string)
|
int_value = locale.atoi(number_string)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue