aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-15 19:44:31 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-15 19:44:31 -0800
commit592a1e9b957828b63ff5679f294101d6ad9f4a89 (patch)
tree205419c8f2f14da564f0b87f9e442d9a8272f908 /emscripten.py
parentc3ffdca9f60e262db5d317aea227a74162f13aa6 (diff)
fix for dot fixing
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 4f4b305f..67011790 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -825,7 +825,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
else:
num = num[:e] + '.0' + num[e:]
return m.group(1) + num
- funcs = re.sub(r'([=,] *)\+((0x)?[0-9a-f]*\.?[0-9]+([eE][-+]?[0-9]+)?)', lambda m: fix_dot_zero(m), funcs)
+ funcs = re.sub(r'([(=,] *)\+((0x)?[0-9a-f]*\.?[0-9]+([eE][-+]?[0-9]+)?)', lambda m: fix_dot_zero(m), funcs)
# js compiler