Skip to content

Commit

Permalink
fix: code scanning alert
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Jan 7, 2022
1 parent 2de68f3 commit 733a476
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"bugs": {
"url": "https://github.com/ArthurFiorette/axios-cache-interceptor/issues"
},
"homepage": "https://axios-cache-interceptor.js.org/",
"homepage": "https://axios-cache-interceptor.js.org",
"dependencies": {
"cache-parser": "^1.1.2",
"fast-defer": "^1.1.3"
Expand Down
3 changes: 1 addition & 2 deletions src/util/key-generator.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { KeyGenerator } from './types';

// Remove first and last '/' char, if present
// https://regex101.com/r/ENqrFy/1
const SLASHES_REGEX = /^\/|\/+$/g;
const SLASHES_REGEX = /^\/|\/$/g;

export const defaultKeyGenerator: KeyGenerator = ({
baseURL = '',
Expand Down

0 comments on commit 733a476

Please sign in to comment.