Looks like the regex is only used to strip comments?
It parses the source code of the view function at run time, matching parentheses, but ignoring whether those are present in strings or regexes. Likewise, the comment stripper will turn
"/*whoops*/"
into the empty string...In other words, the parser is buggy :-/
I'd imagine closures also break.
I hadn't thought of minification, yes it pretty bad :-/...
It looks like the author is smart but has little JS experience (`var last = temp.splice(-1)[0]` where `temp.pop()` would do tells me that it may be one of his first JS project).