senchalabs/connect — pull request #566 by marcenuc (2012-05-16 10:06:37+00:00)
Title: regexp.test() is faster than string.match().

To filter by Content-Type in compress middleware, regexp.test() should be more appropriate, because we only need a boolean test.