Skip to content

stripLeadingAndTrailingSlashes

stripLeadingAndTrailingSlashes(href): string

Ensure the passed path does not start and end with slashes.

Parameters

href: string

Returns

string

Defined in

packages/studiocms_core/src/helpers/pathGenerators.ts:53