Resolve TS errors and warnings
TODO: Use StyleTree types to remove `any`s from styleTrees.
This commit is contained in:
@@ -3,8 +3,8 @@ export function slugify(t: string): string {
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.replace(/\s+/g, "-")
|
||||
.replace(/[^\w\-]+/g, "")
|
||||
.replace(/\-\-+/g, "-")
|
||||
.replace(/[^\w-]+/g, "")
|
||||
.replace(/--+/g, "-")
|
||||
.replace(/^-+/, "")
|
||||
.replace(/-+$/, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user