Skip to content

Commit

Permalink
spelling: separator
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Feb 26, 2018
1 parent 74b060a commit 126efaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RequestShortener.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class RequestShortener {
}

const dirname = path.dirname(directory);
const endsWithSeperator = SEPARATOR_REGEXP.test(dirname);
const parentDirectory = endsWithSeperator
const endsWithSeparator = SEPARATOR_REGEXP.test(dirname);
const parentDirectory = endsWithSeparator
? dirname.substr(0, dirname.length - 1)
: dirname;
if (parentDirectory && parentDirectory !== directory) {
Expand Down

0 comments on commit 126efaf

Please sign in to comment.