remy/nodemon — pull request #340 by remy (2014-05-14 08:59:47+00:00)
Title: Fixed #334

If a single file was being watched, it would use the tryBaseDir method to work out the directory, but fail as a pattern so it would return the base directory - which is too much. Now we test if that string is a real file or a directory, and if it is, it returns *that* back out.