removeLeadingTrailingSlashes
removeLeadingTrailingSlashes(
path
):string
Removes leading and trailing slashes from a URL
Parameters
• path: string
The URL to remove slashes from (e.g. ‘/example/blog/‘)
Returns
string
The URL with leading and trailing slashes removed (e.g. ‘example/blog’)
Defined in
packages/studiocms_core/src/lib/removeLeadingTrailingSlashes.ts:7