spec/lib/jspec.growl.js
function(path) {
      return path.lastIndexOf('.') != -1 ? 
        path.slice(path.lastIndexOf('.') + 1, path.length) :
          null
    }
function(path) {
      return path.lastIndexOf('.') != -1 ? 
        path.slice(path.lastIndexOf('.') + 1, path.length) :
          null
    }
function ( path ) { return path . lastIndexOf ( '.' ) != - 1 ? path . slice ( path . lastIndexOf ( '.' ) + 1 , path . length ) : null }
Return the extension of the given _path_ or null.

@param  {string} path
@return {string}
@api private
Return the extension of the given _path_ or null .