Skip to content

Commit 93a30d8

Browse files
authored
feat: remove redundant slashes when building url (#41)
1 parent 1cead6a commit 93a30d8

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,4 @@ jobs:
3939
uses: crate-ci/typos@master
4040

4141
- name: Type check project
42-
run: deno task check:types
43-
44-
- name: Run tests
45-
run: deno task test
42+
run: deno check --unstable-sloppy-imports **/*.ts

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@byzanteam/jet-queue-plugin-js",
3-
"version": "0.5.3",
3+
"version": "0.5.4",
44
"scripts": {
55
"build": "rollup -c rollup.config.mjs"
66
},

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export function appendPath(base: string, path: string = "/"): URL {
33

44
url.pathname = [url.pathname, path]
55
.join("/")
6-
.replaceAll(/\//g, "/");
6+
.replaceAll(/\/+/g, "/");
77

88
return url;
99
}

0 commit comments

Comments
 (0)