Removed /utils

This commit is contained in:
Luis Alvarez
2020-10-27 05:53:30 -05:00
parent c82f2c5e61
commit eddf338bfb
6 changed files with 5 additions and 5 deletions

5
lib/get-slug.ts Normal file
View File

@@ -0,0 +1,5 @@
// Remove trailing and leading slash, usually included in nodes
// returned by the BigCommerce API
const getSlug = (path: string) => path.replace(/^\/|\/$/g, '')
export default getSlug