Skip to content

Commit 70b7d2f

Browse files
committed
fix(sp): spelling mistake in const name
1 parent c2fa5d4 commit 70b7d2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/RequestShortener.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
const path = require("path");
88
const NORMALIZE_SLASH_DIRECTION_REGEXP = /\\/g;
99
const PATH_CHARS_REGEXP = /[-[\]{}()*+?.,\\^$|#\s]/g;
10-
const SEPERATOR_REGEXP = /[/\\]$/;
10+
const SEPARATOR_REGEXP = /[/\\]$/;
1111
const FRONT_OR_BACK_BANG_REGEXP = /^!|!$/g;
1212
const INDEX_JS_REGEXP = /\/index.js(!|\?|\(query\))/g;
1313

@@ -23,14 +23,14 @@ const createRegExpForPath = (path) => {
2323
class RequestShortener {
2424
constructor(directory) {
2525
directory = normalizeBackSlashDirection(directory);
26-
if(SEPERATOR_REGEXP.test(directory)) directory = directory.substr(0, directory.length - 1);
26+
if(SEPARATOR_REGEXP.test(directory)) directory = directory.substr(0, directory.length - 1);
2727

2828
if(directory) {
2929
this.currentDirectoryRegExp = createRegExpForPath(directory);
3030
}
3131

3232
const dirname = path.dirname(directory);
33-
const endsWithSeperator = SEPERATOR_REGEXP.test(dirname);
33+
const endsWithSeperator = SEPARATOR_REGEXP.test(dirname);
3434
const parentDirectory = endsWithSeperator ? dirname.substr(0, dirname.length - 1) : dirname;
3535
if(parentDirectory && parentDirectory !== directory) {
3636
this.parentDirectoryRegExp = createRegExpForPath(parentDirectory);

0 commit comments

Comments
 (0)