rguerreiro/express-device — pull request #4 by MarcelloDiSimone (2012-10-07 15:34:00+00:00)
Title: DRYed out the enableDeviceHelpers function

...by adding a deviceFactory class, setting the appropriate res.locals.type values

Smaller optimization according to jsHint,
Smaller RegEx optimization, added brackets in &| conditions, removed dot wildcard with a space character where practicable.