From 3431eab292e0b9e2359b183fa2c954eb7e5cf7e7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 4 Jun 2014 13:05:43 -0700 Subject: [PATCH] fix sourceRegex for IE; issue #2400 --- src/preamble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preamble.js b/src/preamble.js index 431a3c274..ae58e7e09 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -401,7 +401,7 @@ var cwrap, ccall; return ret; } - var sourceRegex = /^function\s\(([^)]*)\)\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);