TenzinGayche commited on
Commit
0dc87ee
β€’
1 Parent(s): 3cd2996

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from num2tib.core import convert2text
10
  import re
11
 
12
  def replace_numbers_with_convert(sentence, wylie=True):
13
- pattern = r'\d+'
14
  def replace(match):
15
  return convert(match.group(), wylie)
16
  result = re.sub(pattern, replace, sentence)
 
10
  import re
11
 
12
  def replace_numbers_with_convert(sentence, wylie=True):
13
+ pattern = r'\d+(\.\d+)?'
14
  def replace(match):
15
  return convert(match.group(), wylie)
16
  result = re.sub(pattern, replace, sentence)