Skip to content

Commit c2fa5d4

Browse files
committed
feat(perf): remove unneded regexp escape
1 parent 987a9f3 commit c2fa5d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/RequestShortener.js‎

Lines changed: 1 addition & 1 deletion
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 SEPERATOR_REGEXP = /[/\\]$/;
1111
const FRONT_OR_BACK_BANG_REGEXP = /^!|!$/g;
1212
const INDEX_JS_REGEXP = /\/index.js(!|\?|\(query\))/g;
1313

0 commit comments

Comments
 (0)