(input: string)
| 345 | } |
| 346 | |
| 347 | export function slugify(input: string): string { |
| 348 | return input |
| 349 | .toLowerCase() |
| 350 | .trim() |
| 351 | .replace(/[^\w\s-]/g, "") |
| 352 | .replace(/[\s_-]+/g, "-") |
| 353 | .replace(/^-+|-+$/g, ""); |
| 354 | } |
| 355 | |
| 356 | export const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void = ( |
| 357 | "captureStackTrace" in Error ? Error.captureStackTrace : (..._args: any[]) => {} |
nothing calls this directly
no test coverage detected