diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c190c..fe0be9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog +## v0.4.6 + +[compare changes](https://github.com/manchenkoff/nuxt-auth-sanctum/compare/v0.4.5...v0.4.6) + +### 🩹 Fixes + +- Do not trim single slash in the url ([81c87d0](https://github.com/manchenkoff/nuxt-auth-sanctum/commit/81c87d0)) + +### ❤️ Contributors + +- Manchenkoff ([@manchenkoff](http://github.com/manchenkoff)) + ## v0.4.5 [compare changes](https://github.com/manchenkoff/nuxt-auth-sanctum/compare/v0.4.4...v0.4.5) diff --git a/package.json b/package.json index fc08ead..0021617 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-auth-sanctum", - "version": "0.4.5", + "version": "0.4.6", "author": "Artem Manchenkov", "description": "Nuxt module for Laravel Sanctum authentication", "homepage": "https://manchenkoff.gitbook.io/nuxt-auth-sanctum/", diff --git a/src/runtime/utils/formatter.ts b/src/runtime/utils/formatter.ts index d3e1bb6..0ad62d7 100644 --- a/src/runtime/utils/formatter.ts +++ b/src/runtime/utils/formatter.ts @@ -1,3 +1,3 @@ export function trimTrailingSlash(path: string): string { - return path.replace(/\/$/, ''); + return path.replace(/(?