diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-23 13:45:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-23 13:51:10 -0700 |
commit | c26f95d32690ae867c9b6b55af6d901c4938e0f8 (patch) | |
tree | 5f1b7bba950ee226d591369d294d44f9d78a0c43 | |
parent | 693ece30e2c49431357c428fa835dc51d8526f98 (diff) |
try to fix sourceRegex for IE
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index e0ed8786..fbce6b6b 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -396,7 +396,7 @@ var cwrap, ccall; return ret; } - var sourceRegex = /^function \((.*)\)\s*{\s*([^]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/; + var sourceRegex = /^function\s\((.*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/; function parseJSFunc(jsfunc) { // Match the body and the return value of a javascript function source var parsed = jsfunc.toString().match(sourceRegex).slice(1); |