regexp error with '*.*.*.extname'

Regexp errors with e.g. 'jquery.ui.somemodule.coffee' to 'jquery.ui.somemodule.js'
It should exclude '\.' also.