Skip to content

v1.1.0

Latest

Choose a tag to compare

@leinelissen leinelissen released this 27 Jul 11:59
a9ddf63

swift-inflect now ships with toSlug() for generating URL‑safe slugs. It folds Latin diacritics to ASCII (so Café Olé becomes cafe-ole), drops every non‑alphanumeric character (so Hello, World! becomes hello-world), and inserts - between words using the same camelCase split rules as the rest of the library. The matching isSlug predicate reports whether a string is already in slug form.