Skip to content

Commit

Permalink
removing trailing back and forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbashford committed Jun 7, 2012
1 parent 9595bd0 commit 977567e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -45,7 +45,7 @@ function FSWatcher(options) {
FSWatcher.prototype = Object.create(EventEmitter.prototype);

FSWatcher.prototype._getWatchedDir = function(directory) {
directory = directory.replace(/\/$/, '');
directory = directory.replace(/[\\\/]$/, '');
if (this.watched[directory] == null) this.watched[directory] = [];
return this.watched[directory];
};
Expand Down

0 comments on commit 977567e

Please sign in to comment.