Skip to content

Commit

Permalink
feat(helper): export slash related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 31, 2024
1 parent 8973871 commit 4268fdc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/helper/src/shared/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4268fdc

Please sign in to comment.