#!/usr/bin/env python3 # Eryn Wells import re def slugify(s: str) -> str: '''Process a string into something suitable to be a page slug.''' s = s.strip().lower() s = re.sub(r'\s+', '-', s) s = re.sub(r'[‘’“”"\'()]', '', s) return s