Skip to content
Myr

fix(client): shuold not remove tailing slash from top-level URL (#2523)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* fix(client): shuold not remove tailing slash from top-level URL * denoify

authored by Yusuke Wada · committed by GitHub · parent acb56b8 · Browse files · 3 files+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−1 removed

  • tests:+1 added−1 removed
  • other:+6 added−0 removed

3 files+7 added−1 removed

modified:deno_dist/client/utils.ts+3 added
modified:src/client/utils.test.ts+1 added-1 removed
modified:src/client/utils.ts+3 added
23 unmodified lines
24 }25}2627export const removeIndexString = (urlSting: string) => {28 if (/^https?:\/\/[^\/]+?\/index$/.test(urlSting)) {29 return urlSting.replace(/\/index$/, '/')30 }31 return urlSting.replace(/\/index$/, '')32}3334function isObject(item: unknown): item is ObjectType {
20 unmodified lines