Merge pull request #14 from Semigradsky/master

Fix bug 'Lost $ character'
This commit is contained in:
David Deraedt 2014-01-09 04:56:57 -08:00
commit 74355df221

View file

@ -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