From 1e58b8a9ddf0866433e0158afc7cc4a690b44cbe Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 14 Jan 2026 03:23:36 +0100 Subject: feat: afferomoding --- src/lib/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/lib/index.ts') diff --git a/src/lib/index.ts b/src/lib/index.ts index 13c5889..c83493b 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,10 +1,12 @@ /* - Copyright (C) 2024 memdmp + Copyright (C) 2024-2026 memdmp - This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by Affero, Inc., at version 1. - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Affero General Public License for more details. - You should have received a copy of the GNU Affero General Public License along with this program. If not, see . + You should have received a copy of the Affero General Public License along with this program. If not, see . */ export * as styles from "./styles.ts"; + +export const forceTrailingSlash = (v: string) => v.endsWith('/') ? v : `${v}/`; -- cgit v1.2.3