diff --git a/main.js b/main.js index 4991a0d..dd9d758 100644 --- a/main.js +++ b/main.js @@ -84,7 +84,7 @@ define(function (require, exports, module) { txtFrom = txtFrom.substr(0, txtFrom.indexOf("{")); // Look for words - var re = /\w+/g; + var re = /[$,\w]+/g; var results = txtFrom.match(re); // The first word found should be "function", and next ones parameters