Navigation Menu

Skip to content

Commit

Permalink
processing-js#57 - Fixed parse bug
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 30, 2010
1 parent b802a7a commit e3d7a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processing.js
Expand Up @@ -109,7 +109,7 @@
});

// int|float foo;
var intFloat = /(\n\s*(?:int|float)(?!\[\])*(?:\s*|[^\(;]*?,\s*))(\w+)\s*(,|;)/i;
var intFloat = /(\n\s*(?:int|float)(?!\[\])*(?:\s*|[^\(;]*?,\s*))([a-zA-Z]\w+)\s*(,|;)/i;
while( intFloat.test(aCode) ){
aCode = aCode.replace( new RegExp( intFloat ), function( all, type, name, sep ){
return type + " " + name + " = 0" + sep;
Expand Down

0 comments on commit e3d7a1a

Please sign in to comment.