hexgrad commited on
Commit
22f4889
·
verified ·
1 Parent(s): 61044da

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -46,7 +46,8 @@ def parens_to_angles(s):
46
  return s.replace('(', '«').replace(')', '»')
47
 
48
  def split_num(num):
49
- if '.' not in num:
 
50
  a, b = num.split('.')
51
  b = ' '.join(b)
52
  return f'{a} point {b}'
 
46
  return s.replace('(', '«').replace(')', '»')
47
 
48
  def split_num(num):
49
+ num = num.group()
50
+ if '.' in num:
51
  a, b = num.split('.')
52
  b = ' '.join(b)
53
  return f'{a} point {b}'