From 4268fdc9a7599f84cbd6b24c12ff9400d3340b7f Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Thu, 1 Feb 2024 00:51:31 +0800 Subject: [PATCH] feat(helper): export slash related functions --- tools/helper/src/shared/helper.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/helper/src/shared/helper.ts b/tools/helper/src/shared/helper.ts index b6cf74ea71..46d97a747f 100644 --- a/tools/helper/src/shared/helper.ts +++ b/tools/helper/src/shared/helper.ts @@ -17,6 +17,13 @@ export const startsWith = (str: unknown, prefix: string): boolean => export const endsWith = (str: unknown, suffix: string): boolean => isString(str) && str.endsWith(suffix) +export { + ensureEndingSlash, + ensureLeadingSlash, + removeEndingSlash, + removeLeadingSlash, +} from 'vuepress/shared' + /* Object helper */ export const entries = Object.entries export const fromEntries = Object.fromEntries