rspivak / slimit

SlimIt - a JavaScript minifier/parser in Python
MIT License
551 stars 94 forks source link

Maybe a bug? #5

Closed BadKnees closed 13 years ago

BadKnees commented 13 years ago

when i try to slim this:

var tagRegExp = new RegExp('<(\/*)(FooBar)', 'gi');

I get: SyntaxError: Unexpected token (LT, '<') at 1:30 between LexToken(LPAREN,'(',1,28) and LexToken(LPAREN,'(',1,31)

This same error occurs across several different libraries i use. One of them being monernizr.

rspivak commented 13 years ago

Definitely a bug. Thanks for filing it.

rspivak commented 13 years ago

The bug is fixed. I've made a new 0.5.3 release and uploaded it to pypi: http://pypi.python.org/pypi/slimit